aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-04 18:27:26 -0400
committertdro <tdro@noreply.example.com>2022-05-04 18:27:26 -0400
commitd5e971bbab049fc5afc632041b2f0066d0e56d6c (patch)
tree48fa59beee04ad4f04a25d08fc3b5acc351f6246 /themes
parent516edaacf4f56c6ce702985bab4759f758d38bea (diff)
downloadcanory-d5e971bbab049fc5afc632041b2f0066d0e56d6c.tar.gz
canory-d5e971bbab049fc5afc632041b2f0066d0e56d6c.tar.bz2
canory-d5e971bbab049fc5afc632041b2f0066d0e56d6c.zip
themes/default/layouts/_default/index.json: No unlisted
Diffstat (limited to 'themes')
-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 9096730..ae1e793 100644
--- a/themes/default/layouts/_default/index.json
+++ b/themes/default/layouts/_default/index.json
@@ -5,7 +5,7 @@
"feed_url": "{{ .Site.BaseURL }}/index.json",
"items": [
{{- range $index, $data := where .Site.RegularPages ".Params.hidden" "!=" "true" -}}
- {{- if and (ne $data.Type "json") (not .ExpiryDate) -}}
+ {{- if and (ne $data.Type "json") (not .ExpiryDate) (not .Params.unlisted) -}}
{{- if and $index (gt $index 0) -}},{{- end }}
{
"id": "{{ md5 $data.Permalink }}",