diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-30 22:12:26 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-30 22:12:26 +0300 |
commit | 2662ad4803420ea593050e9131b38e105301002c (patch) | |
tree | ed624673d3e00672d2728514f687cfe11b8e95a6 | |
parent | 1e3005d7c6b1d15a5639cc7136134a6f06ec6791 (diff) |
fix menu : subpage param is now taken into account when false
-rw-r--r-- | layouts/partials/_menu.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/_menu.html b/layouts/partials/_menu.html index f791567..658274e 100644 --- a/layouts/partials/_menu.html +++ b/layouts/partials/_menu.html @@ -21,7 +21,7 @@ {{- with .sect}} {{- if and .IsSection (or (not .Params.hidden) $.showhidden)}} {{- $numberOfPages := (len .Sections) }} - {{- $numberOfPages := (len (where .Sections "Params.subpage" "ne" "true")) }} + {{- $numberOfPages := (len (where .Sections "Params.subpage" "ne" true)) }} {{- safeHTML .Params.head}} <li data-nav-id="{{.Permalink}}" class="dd-item {{- if .IsAncestor $currentNode}} parent{{end}} |