]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Work around the docs/ redirects.
authorXhmikosR <xhmikosr@gmail.com>
Mon, 11 Feb 2019 19:52:52 +0000 (21:52 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 13 Mar 2019 17:22:59 +0000 (19:22 +0200)
This happens because we have the section kind enabled (needed for examples).

site/content/docs/4.3/_index.html [new file with mode: 0644]
site/content/docs/4.3/getting-started/introduction.md
site/content/docs/_index.html [new file with mode: 0644]
site/layouts/_default/redirect.html [new file with mode: 0644]

diff --git a/site/content/docs/4.3/_index.html b/site/content/docs/4.3/_index.html
new file mode 100644 (file)
index 0000000..9f56983
--- /dev/null
@@ -0,0 +1,5 @@
+---
+layout: redirect
+sitemap_exclude: true
+redirect: "/docs/4.3/getting-started/introduction/"
+---
index 438be1ea8cb080f5a4c874ea98fa3419f3b900eb..7e32385f945507fbb69342bf529837b558e5b69b 100644 (file)
@@ -4,8 +4,6 @@ title: Introduction
 description: Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with BootstrapCDN and a template starter page.
 group: getting-started
 aliases:
-  - "/docs/"
-  - "/docs/4.3/"
   - "/docs/4.3/getting-started/"
   - "/docs/getting-started/"
   - "/getting-started/"
diff --git a/site/content/docs/_index.html b/site/content/docs/_index.html
new file mode 100644 (file)
index 0000000..9f56983
--- /dev/null
@@ -0,0 +1,5 @@
+---
+layout: redirect
+sitemap_exclude: true
+redirect: "/docs/4.3/getting-started/introduction/"
+---
diff --git a/site/layouts/_default/redirect.html b/site/layouts/_default/redirect.html
new file mode 100644 (file)
index 0000000..2cd10f9
--- /dev/null
@@ -0,0 +1,11 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>{{ .Page.Params.redirect | absURL }}</title>
+    <link rel="canonical" href="{{ .Page.Params.redirect | absURL }}">
+    <meta name="robots" content="noindex">
+    <meta http-equiv="refresh" content="0; url={{ .Page.Params.redirect | absURL }}">
+  </head>
+</html>