mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +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>
|
<i class="fas fa-check read-icon"></i>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</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 }}
|
{{ if ne $numberOfPages 0 }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ $currentNode.Scratch.Set "pages" .Pages }}
|
{{ $currentNode.Scratch.Set "pages" .Pages }}
|
||||||
|
|
Loading…
Reference in a new issue