Avoid displaying hidden sections in menu

This commit is contained in:
Rasmus Stougaard 2019-12-18 21:02:24 +01:00 committed by Matthew Taylor
parent 3ea5bca755
commit 46223816d6

View file

@ -95,7 +95,7 @@
{{ $showvisitedlinks := .showvisitedlinks }}
{{ $currentNode := .currentnode }}
{{with .sect}}
{{if .IsSection}}
{{if and .IsSection ((not .Params.hidden) or $.showhidden)}}
{{safeHTML .Params.head}}
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item
{{if .IsAncestor $currentNode }}parent{{end}}