diff options
| author | XhmikosR <[email protected]> | 2019-02-11 21:52:52 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-13 19:22:59 +0200 |
| commit | d948a3f9cba042ab30a6e2d9083d93707b56feac (patch) | |
| tree | be3a334672e32d16029d70e2eac4a65231a87011 /site | |
| parent | 850817bb09d6472ff88e7c62346ac6f5d64a98cf (diff) | |
| download | bootstrap-d948a3f9cba042ab30a6e2d9083d93707b56feac.tar.xz bootstrap-d948a3f9cba042ab30a6e2d9083d93707b56feac.zip | |
Work around the docs/ redirects.
This happens because we have the section kind enabled (needed for examples).
Diffstat (limited to 'site')
| -rw-r--r-- | site/content/docs/4.3/_index.html | 5 | ||||
| -rw-r--r-- | site/content/docs/4.3/getting-started/introduction.md | 2 | ||||
| -rw-r--r-- | site/content/docs/_index.html | 5 | ||||
| -rw-r--r-- | site/layouts/_default/redirect.html | 11 |
4 files changed, 21 insertions, 2 deletions
diff --git a/site/content/docs/4.3/_index.html b/site/content/docs/4.3/_index.html new file mode 100644 index 000000000..9f56983c1 --- /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 438be1ea8..7e32385f9 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 000000000..9f56983c1 --- /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 000000000..2cd10f9d9 --- /dev/null +++ b/site/layouts/_default/redirect.html @@ -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> |
