diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-04-30 22:16:02 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-04-30 22:16:02 +0200 |
commit | ffd5e272a8c42becf977125e6e9826ad26e68d23 (patch) | |
tree | fdd242289e96889b978163934ac11de7c972a52e /layouts | |
parent | 5b963180ab77741190d260cb33ddbb3dca5a27cd (diff) |
#43, Add bookHidden page param to hide page from side menu
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/docs/menu-filetree.html | 6 |
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> |