mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
Avoid displaying hidden sections in menu
This commit is contained in:
parent
3ea5bca755
commit
46223816d6
1 changed files with 1 additions and 1 deletions
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue