Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2021-04-22 22:25:43 +0300
committerGitHub <noreply@github.com>2021-04-22 22:25:43 +0300
commitd51f514b90f0b2bcc7fe618f20a9399b84829a7d (patch)
tree0b3ff06e183673a442a9ad56a058a2149dcac875 /assets
parent4e81dbe0e9cac5adab56b921f35937acc5d0ac4c (diff)
feat: add option geekdocProtected to exclude pages from data file (#97)
Diffstat (limited to 'assets')
-rw-r--r--assets/search-data.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/search-data.json b/assets/search-data.json
index b337f9b..7bc1955 100644
--- a/assets/search-data.json
+++ b/assets/search-data.json
@@ -1,5 +1,5 @@
[
- {{ range $index, $page := .Site.Pages }}
+ {{ range $index, $page := (where .Site.Pages "Params.geekdocprotected" "ne" true) }}
{{ if ne $index 0 }},{{ end }}
{
"id": {{ $index }},