mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
Don't count hidden pages for the sub-menus (#470)
This commit is contained in:
parent
f5f91e39fa
commit
d7a4481ff2
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@
|
|||
<i class="fas fa-check read-icon"></i>
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||
{{ $numberOfPages := (add (len ( where .Pages "Params.hidden" "ne" true )) (len ( where .Sections "Params.hidden" "ne" true ))) }}
|
||||
{{ if ne $numberOfPages 0 }}
|
||||
<ul>
|
||||
{{ $currentNode.Scratch.Set "pages" .Pages }}
|
||||
|
|
Loading…
Reference in a new issue