From d948a3f9cba042ab30a6e2d9083d93707b56feac Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 11 Feb 2019 21:52:52 +0200 Subject: [PATCH] Work around the docs/ redirects. This happens because we have the section kind enabled (needed for examples). --- site/content/docs/4.3/_index.html | 5 +++++ site/content/docs/4.3/getting-started/introduction.md | 2 -- site/content/docs/_index.html | 5 +++++ site/layouts/_default/redirect.html | 11 +++++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 site/content/docs/4.3/_index.html create mode 100644 site/content/docs/_index.html create mode 100644 site/layouts/_default/redirect.html diff --git a/site/content/docs/4.3/_index.html b/site/content/docs/4.3/_index.html new file mode 100644 index 0000000000..9f56983c15 --- /dev/null +++ b/site/content/docs/4.3/_index.html @@ -0,0 +1,5 @@ +--- +layout: redirect +sitemap_exclude: true +redirect: "/docs/4.3/getting-started/introduction/" +--- diff --git a/site/content/docs/4.3/getting-started/introduction.md b/site/content/docs/4.3/getting-started/introduction.md index 438be1ea8c..7e32385f94 100644 --- a/site/content/docs/4.3/getting-started/introduction.md +++ b/site/content/docs/4.3/getting-started/introduction.md @@ -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 index 0000000000..9f56983c15 --- /dev/null +++ b/site/content/docs/_index.html @@ -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 index 0000000000..2cd10f9d95 --- /dev/null +++ b/site/layouts/_default/redirect.html @@ -0,0 +1,11 @@ + + + + + + {{ .Page.Params.redirect | absURL }} + + + + + -- 2.47.2