mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 14:18:01 +08:00
Avoid displaying hidden sections in menu
This commit is contained in:
parent
3ea5bca755
commit
46223816d6
@ -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…
x
Reference in New Issue
Block a user