From 5685081b778520b4a40dc016fc4b6941cd3babf5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 8 May 2017 20:53:49 +0100 Subject: [PATCH] Allow hiding items from nav --- layouts/_default/list.html | 2 +- layouts/partials/navbar.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4006aba..f4b2134 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@ {{ end }}
- {{ range .Pages.ByTitle }} + {{ range where .Pages.ByTitle "Params.show_in_nav" "!=" "false" }} {{ partial "box.html" . }} {{ end }}
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 842cb51..ac1fbae 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -7,7 +7,7 @@ {{ .LinkTitle }} {{ if .Pages }}