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-09-30 22:12:26 +0300
committervjeantet <valere.jeantet@gmail.com>2020-09-30 22:12:26 +0300
commit2662ad4803420ea593050e9131b38e105301002c (patch)
treeed624673d3e00672d2728514f687cfe11b8e95a6
parent1e3005d7c6b1d15a5639cc7136134a6f06ec6791 (diff)
fix menu : subpage param is now taken into account when false
-rw-r--r--layouts/partials/_menu.html2
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}}