aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-04-30 22:16:02 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-04-30 22:16:02 +0200
commitffd5e272a8c42becf977125e6e9826ad26e68d23 (patch)
treefdd242289e96889b978163934ac11de7c972a52e /layouts/partials
parent5b963180ab77741190d260cb33ddbb3dca5a27cd (diff)
#43, Add bookHidden page param to hide page from side menu
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/docs/menu-filetree.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html
index b0f28c0..4f4cb0c 100644
--- a/layouts/partials/docs/menu-filetree.html
+++ b/layouts/partials/docs/menu-filetree.html
@@ -15,7 +15,7 @@
{{ end }}
{{ else }}
<ul>
- {{ range $sections }}
+ {{ range where $sections "Params.bookhidden" "!=" true }}
{{ template "book-section" (dict "Section" . "CurrentPage" $.Permalink) }}
{{ end }}
</ul>
@@ -38,10 +38,10 @@
{{ define "book-section-children" }}
{{ with .Section }}
<ul>
- {{ range .Sections }}
+ {{ range where .Sections "Params.bookhidden" "!=" true }}
{{ template "book-section" (dict "Section" . "CurrentPage" $.CurrentPage) }}
{{ end }}
- {{ range .Pages }}
+ {{ range where .Pages "Params.bookhidden" "!=" true }}
<li>
{{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }}
</li>