aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorGijs Boddeus <[email protected]>2017-08-15 23:43:36 +0200
committerGitHub <[email protected]>2017-08-15 23:43:36 +0200
commit06d4c6d273daf3eb84c9c5bb6306cecc9209304f (patch)
tree695d8fb5b2f414eae0bac032369f77285f594803 /_layouts
parent1fb6d8c46a560e2e35295440721ba2929f9721b6 (diff)
parent7b873fa0a15c0fb62671f95e966656967c6fd9b4 (diff)
downloadbootstrap-06d4c6d273daf3eb84c9c5bb6306cecc9209304f.tar.xz
bootstrap-06d4c6d273daf3eb84c9c5bb6306cecc9209304f.zip
Merge pull request #1 from twbs/v4-dev
updating fork of BS to v4-beta1
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html26
-rw-r--r--_layouts/docs.html38
-rw-r--r--_layouts/home.html20
-rw-r--r--_layouts/redirect.html36
-rw-r--r--_layouts/simple.html12
5 files changed, 132 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 000000000..0b0c214a1
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {% include header.html %}
+ </head>
+ <body class="bd-docs" data-spy="scroll" data-target=".bd-sidenav-active">
+ <a id="skippy" class="sr-only sr-only-focusable" href="#content">
+ <div class="container">
+ <span class="skiplink-text">Skip to main content</span>
+ </div>
+ </a>
+
+ {% include docs-navbar.html %}
+
+ {% if page.layout == "simple" %}
+ {{ content }}
+ {% else %}
+ <main id="content" role="main">
+ {{ content }}
+ </main>
+ {% endif %}
+
+ {% include footer.html %}
+ {% include scripts.html %}
+ </body>
+</html>
diff --git a/_layouts/docs.html b/_layouts/docs.html
new file mode 100644
index 000000000..2e0e1e85d
--- /dev/null
+++ b/_layouts/docs.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {% include header.html %}
+ </head>
+ <body class="bd-docs" data-spy="scroll" data-target=".bd-sidenav-active">
+ <a id="skippy" class="sr-only sr-only-focusable" href="#content">
+ <div class="container">
+ <span class="skiplink-text">Skip to main content</span>
+ </div>
+ </a>
+
+ {% include docs-navbar.html %}
+
+ <div class="container-fluid">
+ <div class="row flex-xl-nowrap">
+ <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
+ {% include docs-sidebar.html %}
+ </div>
+
+ {% if page.toc %}
+ <div class="d-none d-xl-block col-xl-2 bd-toc">
+ {{ content | toc_only }}
+ </div>
+ {% endif %}
+
+ <main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
+ <h1 class="bd-title" id="content">{{ page.title }}</h1>
+ <p class="bd-lead">{{ page.description }}</p>
+ {% include ads.html %}
+ {{ content }}
+ </main>
+ </div>
+ </div>
+
+ {% include scripts.html %}
+ </body>
+</html>
diff --git a/_layouts/home.html b/_layouts/home.html
new file mode 100644
index 000000000..6405134e2
--- /dev/null
+++ b/_layouts/home.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {% include header.html %}
+ </head>
+ <body class="bd-home">
+ <a id="skippy" class="sr-only sr-only-focusable" href="#content">
+ <div class="container">
+ <span class="skiplink-text">Skip to main content</span>
+ </div>
+ </a>
+
+ {% include docs-navbar.html %}
+
+ {{ content }}
+
+ {% include footer.html %}
+ {% include scripts.html %}
+ </body>
+</html>
diff --git a/_layouts/redirect.html b/_layouts/redirect.html
new file mode 100644
index 000000000..b3184e40c
--- /dev/null
+++ b/_layouts/redirect.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <meta charset="utf-8">
+ <title>Bootstrap - Content moved</title>
+ <link rel="canonical" href="{{ page.redirect.to }}">
+ <meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
+ <style>
+ html {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin: 0;
+ width: 100vw;
+ height: 100vh;
+ text-align: center;
+ }
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+ }
+ h1 {
+ margin-top: 0;
+ margin-bottom: .5rem;
+ }
+ a {
+ color: #007bff;
+ text-decoration: none;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Redirecting…</h1>
+ <a href="{{ page.redirect.to }}">Click here if you are not redirected</a>
+ <script>location="{{ page.redirect.to }}"</script>
+ </body>
+</html>
diff --git a/_layouts/simple.html b/_layouts/simple.html
new file mode 100644
index 000000000..8e7fc5e30
--- /dev/null
+++ b/_layouts/simple.html
@@ -0,0 +1,12 @@
+---
+layout: default
+---
+
+<div class="container my-5">
+ <main class="bd-content" role="main">
+ <h1 class="bd-title" id="content">{{ page.title }}</h1>
+ <p class="bd-lead">{{ page.description }}</p>
+ {% include ads.html %}
+ {{ content }}
+ </main>
+</div>