mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 04:40:40 +00:00
feat: add option geekdocProtected to exclude pages from data file (#97)
This commit is contained in:
parent
4e81dbe0e9
commit
d51f514b90
@ -1,5 +1,5 @@
|
|||||||
[
|
[
|
||||||
{{ range $index, $page := .Site.Pages }}
|
{{ range $index, $page := (where .Site.Pages "Params.geekdocprotected" "ne" true) }}
|
||||||
{{ if ne $index 0 }},{{ end }}
|
{{ if ne $index 0 }},{{ end }}
|
||||||
{
|
{
|
||||||
"id": {{ $index }},
|
"id": {{ $index }},
|
||||||
|
@ -230,6 +230,12 @@ geekdocCollapseSection = true
|
|||||||
|
|
||||||
# Add an anchor link to headlines.
|
# Add an anchor link to headlines.
|
||||||
geekdocAnchor = true
|
geekdocAnchor = true
|
||||||
|
|
||||||
|
# If you have protected some pages with e.g. basic authentication you may want to exclude these pages
|
||||||
|
# from data file, otherwise information may be leaked. Setting this parameter to 'true' will exclude the
|
||||||
|
# page from search data, feeds, etc.
|
||||||
|
# WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead!
|
||||||
|
geekdocProtected: false
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
@ -277,6 +283,12 @@ geekdocCollapseSection: true
|
|||||||
|
|
||||||
# Add an anchor link to headlines.
|
# Add an anchor link to headlines.
|
||||||
geekdocAnchor: true
|
geekdocAnchor: true
|
||||||
|
|
||||||
|
# If you have protected some pages with e.g. basic authentication you may want to exclude these pages
|
||||||
|
# from data file, otherwise information may be leaked. Setting this parameter to 'true' will exclude the
|
||||||
|
# page from search data, feeds, etc.
|
||||||
|
# WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead!
|
||||||
|
geekdocProtected: false
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
|
Loading…
Reference in New Issue
Block a user