From 5027a8086ab2cb56975e0d816f61d541fc5d1bad Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 18 Jul 2019 13:49:05 -0700 Subject: [PATCH] Move subnav to partial, take first pass at conditionalizing breadcrumb links --- site/layouts/_default/docs.html | 19 ++----------------- site/layouts/_default/home.html | 1 + site/layouts/_default/single.html | 16 +--------------- site/layouts/partials/docs-subnav.html | 25 +++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 32 deletions(-) create mode 100644 site/layouts/partials/docs-subnav.html diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index 9bde5246ac..57dde40895 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -7,24 +7,9 @@ {{ partial "skippy" . }} {{ partial "docs-navbar" . }} + {{ partial "docs-subnav" . }} - - -
+
{{ partial "docs-sidebar" . }} diff --git a/site/layouts/_default/home.html b/site/layouts/_default/home.html index c03de11abb..c2b531b49b 100644 --- a/site/layouts/_default/home.html +++ b/site/layouts/_default/home.html @@ -7,6 +7,7 @@ {{ partial "skippy" . }} {{ partial "docs-navbar" . }} + {{ partial "docs-subnav" . }} {{ partial "home/masthead" . }} {{ partial "home/masthead-followup" . }} diff --git a/site/layouts/_default/single.html b/site/layouts/_default/single.html index b8caae6dd8..dbd9c01fb1 100644 --- a/site/layouts/_default/single.html +++ b/site/layouts/_default/single.html @@ -7,21 +7,7 @@ {{ partial "skippy" . }} {{ partial "docs-navbar" . }} - - + {{ partial "docs-subnav" . }}
diff --git a/site/layouts/partials/docs-subnav.html b/site/layouts/partials/docs-subnav.html new file mode 100644 index 0000000000..2afeeddfda --- /dev/null +++ b/site/layouts/partials/docs-subnav.html @@ -0,0 +1,25 @@ +