Skip to content
Permalink
Browse files

Avoid displaying hidden sections in menu

  • Loading branch information
Rasmus Stougaard authored and matalo33 committed Dec 18, 2019
1 parent 3ea5bca commit 46223816d607076c2f984655fefd48085176f674
Showing with 1 addition and 1 deletion.
  1. +1 −1 layouts/partials/menu.html
@@ -95,7 +95,7 @@ <h3>{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}</h3>
{{ $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}}

0 comments on commit 4622381

Please sign in to comment.
You can’t perform that action at this time.