mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 22:00:39 +00:00
Allow geekdocHiddenTocTree as Page parameter
This commit is contained in:
parent
92254349c4
commit
90f285c335
@ -193,6 +193,10 @@ geekdocFlatSection = true
|
||||
# Set true to hide page or section from side menu (file-tree menu only)
|
||||
geekdocHidden = true
|
||||
|
||||
# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar
|
||||
# NOTE: Only applies when geekdocHidden=true
|
||||
geekdocHiddenTocTree = true
|
||||
|
||||
# Add an anchor link to headlines
|
||||
geekdocAnchor = true
|
||||
```
|
||||
@ -233,6 +237,10 @@ geekdocFlatSection: true
|
||||
# Set true to hide page or section from side menu (file-tree menu only)
|
||||
geekdocHidden: true
|
||||
|
||||
# Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar
|
||||
# NOTE: Only applies when geekdocHidden=true
|
||||
geekdocHiddenTocTree: true
|
||||
|
||||
# Add an anchor link to headlines
|
||||
geekdocAnchor: true
|
||||
```
|
||||
|
@ -11,7 +11,7 @@
|
||||
<ul>
|
||||
{{ range .sect.GroupBy "Weight" }}
|
||||
{{ range .ByTitle }}
|
||||
{{ if not .Params.geekdocHidden }}
|
||||
{{ if or (not .Params.geekdocHidden) (not (default true .Params.geekdocHiddenTocTree)) }}
|
||||
<li>
|
||||
{{ if or .Content .Params.geekdocFlatSection }}
|
||||
<span>
|
||||
|
Loading…
Reference in New Issue
Block a user