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:
authorvjeantet <valere.jeantet@gmail.com>2020-11-06 01:30:56 +0300
committervjeantet <valere.jeantet@gmail.com>2020-11-06 01:30:56 +0300
commitb43c043a7b9153e5cf6a1a30b057d143b1cedc52 (patch)
tree468fe0ce643f24e92c0ed06e6dc587eb52a62c13 /layouts/partials/_menu.html
parent4b0cf57d5be417ddb3167d0bd0b4c09a35c1e62b (diff)
fix some cssHEADmaster
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>