mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 05:40:39 +00:00
Merge pull request #16 from atorrescogollo/feature/allow-geekdochiddeninpage
Allow geekdocHiddenInPage as Page parameter
This commit is contained in:
commit
8530b63df3
@ -203,6 +203,10 @@ geekdocFlatSection = true
|
|||||||
# Set true to hide page or section from side menu (file-tree menu only)
|
# Set true to hide page or section from side menu (file-tree menu only)
|
||||||
geekdocHidden = true
|
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
|
# Add an anchor link to headlines
|
||||||
geekdocAnchor = true
|
geekdocAnchor = true
|
||||||
```
|
```
|
||||||
@ -243,6 +247,10 @@ geekdocFlatSection: true
|
|||||||
# Set true to hide page or section from side menu (file-tree menu only)
|
# Set true to hide page or section from side menu (file-tree menu only)
|
||||||
geekdocHidden: true
|
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
|
# Add an anchor link to headlines
|
||||||
geekdocAnchor: true
|
geekdocAnchor: true
|
||||||
```
|
```
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{{ range .sect.GroupBy "Weight" }}
|
{{ range .sect.GroupBy "Weight" }}
|
||||||
{{ range .ByTitle }}
|
{{ range .ByTitle }}
|
||||||
{{ if not .Params.geekdocHidden }}
|
{{ if or (not .Params.geekdocHidden) (not (default true .Params.geekdocHiddenTocTree)) }}
|
||||||
<li>
|
<li>
|
||||||
{{ if or .Content .Params.geekdocFlatSection }}
|
{{ if or .Content .Params.geekdocFlatSection }}
|
||||||
<span>
|
<span>
|
||||||
|
Loading…
Reference in New Issue
Block a user