From f83c45b17680bca1e8cbd5807c27699496304a3d Mon Sep 17 00:00:00 2001 From: Valere JEANTET Date: Sat, 8 Jul 2017 10:32:28 +0200 Subject: [PATCH] fix menu : hidden section/pages should not be displayed in menu --- layouts/partials/menu.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index e6d2e2c4e64..a2b6d37e930 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -76,7 +76,10 @@ {{end}} {{ $pages := (.Scratch.Get "pages") }} {{ range $pages.ByWeight }} + {{ if and .Params.hidden (not $.showhidden) }} + {{else}} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }} + {{end}} {{ end }}