diff options
author | Mark Otto <markdotto@gmail.com> | 2017-05-29 08:50:57 +0300 |
---|---|---|
committer | Mark Otto <markd.otto@gmail.com> | 2017-05-30 09:32:28 +0300 |
commit | 3e76d6565603fafa2c85ad81d7b6345c4e279c72 (patch) | |
tree | fad0aa6a4a70cafb4a803bd920d6ae2fa44dc466 /_layouts | |
parent | 32153eb7cba316b873e82cd7b9362c92ca00eddf (diff) |
Rearrange all the docs to allow for a docs/major.minor/ setup
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 21 | ||||
-rw-r--r-- | _layouts/docs.html | 35 | ||||
-rw-r--r-- | _layouts/home.html | 19 | ||||
-rw-r--r-- | _layouts/simple.html | 17 |
4 files changed, 92 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000000..e3642ac6d1 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,21 @@ +<!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 nav-home.html %} + + <main id="content" role="main"> + {{ content }} + </main> + + {% include footer.html %} + </body> +</html> diff --git a/_layouts/docs.html b/_layouts/docs.html new file mode 100644 index 0000000000..7bbb06b87d --- /dev/null +++ b/_layouts/docs.html @@ -0,0 +1,35 @@ +<!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 nav-home.html %} + + <div class="container-fluid"> + <div class="row flex-xl-nowrap"> + <div class="col-12 col-md-3 col-xl-2 bd-sidebar"> + {% include nav-docs.html %} + </div> + <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> + + {% if page.toc %} + <div class="d-none d-xl-block col-xl-2 bd-toc"> + {{ content | toc_only }} + </div> + {% endif %} + </div> + </div> + </body> +</html> diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000000..788ecf1dd5 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,19 @@ +<!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 nav-home.html %} + + {{ content }} + + {% include footer.html %} + </body> +</html> diff --git a/_layouts/simple.html b/_layouts/simple.html new file mode 100644 index 0000000000..bb35ec7920 --- /dev/null +++ b/_layouts/simple.html @@ -0,0 +1,17 @@ +--- +layout: default +--- + +<div class="bd-pageheader text-center text-sm-left"> + <div class="container"> + <h1>{{ page.title }}</h1> + <p class="lead"> + Quickly get a project started with any of our examples ranging from using parts of the framework to custom components and layouts. + </p> + {% include ads.html %} + </div> +</div> + +<div class="container bd-content"> + {{ content }} +</div> |