mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Work around the docs/ redirects.
This happens because we have the section kind enabled (needed for examples).
This commit is contained in:
parent
850817bb09
commit
d948a3f9cb
5
site/content/docs/4.3/_index.html
Normal file
5
site/content/docs/4.3/_index.html
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
layout: redirect
|
||||
sitemap_exclude: true
|
||||
redirect: "/docs/4.3/getting-started/introduction/"
|
||||
---
|
@ -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/"
|
||||
|
5
site/content/docs/_index.html
Normal file
5
site/content/docs/_index.html
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
layout: redirect
|
||||
sitemap_exclude: true
|
||||
redirect: "/docs/4.3/getting-started/introduction/"
|
||||
---
|
11
site/layouts/_default/redirect.html
Normal file
11
site/layouts/_default/redirect.html
Normal file
@ -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>
|
Loading…
x
Reference in New Issue
Block a user