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

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-08-19 13:58:47 +0300
committervjeantet <valere.jeantet@gmail.com>2020-08-19 13:58:47 +0300
commit7328d74903e5804c448f845fdba33cf97f0871ab (patch)
treeef3418f0cb667c77d17471662d93d1cfbb1d7427
parentf879b2a6882fbb80132112df382efc1f2983f222 (diff)
search ignore content in folders which have a "_" prefix
-rw-r--r--layouts/index.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.json b/layouts/index.json
index 4a151a4..984aaa7 100644
--- a/layouts/index.json
+++ b/layouts/index.json
@@ -1,5 +1,5 @@
[{{ range $index, $page := .Site.Pages }}
-{{- if hasPrefix $page.Section "_" -}}
+{{- if not (hasPrefix $page.Section "_") -}}
{{- if ne $page.Type "json" -}}
{{- if and $index (gt $index 0) -}},{{- end }}
{