diff options
author | tdro <tdro@noreply.example.com> | 2022-05-04 18:27:26 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-04 18:27:26 -0400 |
commit | d5e971bbab049fc5afc632041b2f0066d0e56d6c (patch) | |
tree | 48fa59beee04ad4f04a25d08fc3b5acc351f6246 /themes | |
parent | 516edaacf4f56c6ce702985bab4759f758d38bea (diff) | |
download | canory-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.json | 2 |
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 }}", |