Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/_menu.html')
-rw-r--r--layouts/partials/_menu.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/_menu.html b/layouts/partials/_menu.html
index 658274e..148bb6d 100644
--- a/layouts/partials/_menu.html
+++ b/layouts/partials/_menu.html
@@ -20,8 +20,7 @@
{{if lt $level $maxlevel }}
{{- with .sect}}
{{- if and .IsSection (or (not .Params.hidden) $.showhidden)}}
- {{- $numberOfPages := (len .Sections) }}
- {{- $numberOfPages := (len (where .Sections "Params.subpage" "ne" true)) }}
+ {{- $numberOfPages := (len (where (where .Sections "Params.subpage" "ne" true) "Params.hidden" "ne" true )) }}
{{- safeHTML .Params.head}}
<li data-nav-id="{{.Permalink}}" class="dd-item
{{- if .IsAncestor $currentNode}} parent{{end}}
@@ -37,7 +36,6 @@
{{if gt $level 0 }}
<a href="{{ .RelPermalink}}">{{safeHTML .Params.Pre}}{{$menuTitle}}{{safeHTML .Params.Post}}</a>
{{end}}
-
{{- if and (ne $numberOfPages 0) (lt (add $level 1) $maxlevel) }}
{{- if or (.IsAncestor $currentNode) (.Params.alwaysopen) }}
<i class="fas fa-chevron-down ddexp"></i>