From 3839a0f98d0bed4f6527f0fc3eccde2d9ab15c0c Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Wed, 8 Mar 2017 15:18:45 -0600 Subject: [PATCH] Make nav accord to 1 item only, per @digitalcraftsman --- content/templates/lists.md | 2 +- layouts/partials/site-navigation.html | 2 +- pipeline/js/scripts/active-page.js | 12 ----- .../images-extend-markdown-with-classes.js | 50 ++++++++++--------- pipeline/js/scripts/site-navigation.js | 17 +++++-- static/js/script.min.js | 8 +-- 6 files changed, 44 insertions(+), 47 deletions(-) delete mode 100644 pipeline/js/scripts/active-page.js diff --git a/content/templates/lists.md b/content/templates/lists.md index 273f65687..dfa17c7d0 100644 --- a/content/templates/lists.md +++ b/content/templates/lists.md @@ -16,7 +16,7 @@ wip: true ## What is a List Page Template? -A list page template is a template used to render multiple pieces of content in a single HTML page (with the exception of the homepage, which has a [dedicated template][homepage]). +A list page template is a template used to render multiple pieces of content in a single HTML page. The exception to this rule is the homepage, which is still a list but has its own [dedicated template][homepage]). Hugo uses the term *list* in its truest sense; i.e. a sequential arrangement of material, especially in alphabetical or numerical order. Hugo uses list templates on any output HTML page where content is traditionally listed: diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html index d0726c454..e3b3d06d3 100644 --- a/layouts/partials/site-navigation.html +++ b/layouts/partials/site-navigation.html @@ -12,7 +12,7 @@ {{$.Scratch.Set "url" .URL }} {{range $item, $params := sort ($.Site.Data.sitenavigation) "order"}} {{$section := $params.url}} -
  • {{$params.title}} +
  • {{$params.title}} {{if $params.haschildren}}