diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-08-19 13:58:47 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-08-19 13:58:47 +0300 |
commit | 7328d74903e5804c448f845fdba33cf97f0871ab (patch) | |
tree | ef3418f0cb667c77d17471662d93d1cfbb1d7427 | |
parent | f879b2a6882fbb80132112df382efc1f2983f222 (diff) |
search ignore content in folders which have a "_" prefix
-rw-r--r-- | layouts/index.json | 2 |
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 }} { |