Skip to content

Commit

Permalink
fix menu : hidden section/pages should not be displayed in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeantet committed Jul 8, 2017
1 parent e078b01 commit f83c45b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
{{end}}
{{ $pages := (.Scratch.Get "pages") }}
{{ range $pages.ByWeight }}
{{ if and .Params.hidden (not $.showhidden) }}
{{else}}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
{{end}}
{{ end }}
</ul>
</li>
Expand Down

0 comments on commit f83c45b

Please sign in to comment.