aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/index.json
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-31 01:23:25 -0400
committertdro <tdro@noreply.example.com>2022-05-31 01:23:25 -0400
commite06f465f528d69e5df5689c067fdfd4b33692eb0 (patch)
tree8ce3827b177b87573dbe4a5b6e4245ca95d608ac /themes/default/layouts/_default/index.json
parent033a5bf2d11ee7052967f1148f495d9c0cc14662 (diff)
downloadcanory-e06f465f528d69e5df5689c067fdfd4b33692eb0.tar.gz
canory-e06f465f528d69e5df5689c067fdfd4b33692eb0.tar.bz2
canory-e06f465f528d69e5df5689c067fdfd4b33692eb0.zip
themes/default/layouts/_default: Remove hidden parameter
We have drafts.
Diffstat (limited to 'themes/default/layouts/_default/index.json')
-rw-r--r--themes/default/layouts/_default/index.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/index.json b/themes/default/layouts/_default/index.json
index b5ec06c..63f8445 100644
--- a/themes/default/layouts/_default/index.json
+++ b/themes/default/layouts/_default/index.json
@@ -4,7 +4,7 @@
"home_page_url": "{{ .Site.BaseURL }}",
"feed_url": "{{ .Site.BaseURL }}/index.json",
"items": [
- {{- range $index, $data := where .Site.RegularPages ".Params.hidden" "!=" "true" -}}
+ {{- range $index, $data := .Site.RegularPages -}}
{{- if and (ne $data.Type "json") (not .ExpiryDate) (not .Params.unlisted) -}}
{{- if and $index (gt $index 0) -}},{{- end }}
{