mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-17 09:10:08 +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 }}
|
{{ $showvisitedlinks := .showvisitedlinks }}
|
||||||
{{ $currentNode := .currentnode }}
|
{{ $currentNode := .currentnode }}
|
||||||
{{with .sect}}
|
{{with .sect}}
|
||||||
{{if .IsSection}}
|
{{if and .IsSection ((not .Params.hidden) or $.showhidden)}}
|
||||||
{{safeHTML .Params.head}}
|
{{safeHTML .Params.head}}
|
||||||
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item
|
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item
|
||||||
{{if .IsAncestor $currentNode }}parent{{end}}
|
{{if .IsAncestor $currentNode }}parent{{end}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue