diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-04 11:08:13 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-04 11:08:13 +0200 |
commit | a8ef100b6b1a70ec7e2d0246943b9bf938bbe5d1 (patch) | |
tree | de813bc275cf633c8c29609d9d18395d1fe79b94 /layouts/posts/list.xml | |
parent | 1f6f3b00b06a2cb3c829c5dbbc12a9aa2b9e56a6 (diff) |
Dont include drafts in RSS feed
Diffstat (limited to 'layouts/posts/list.xml')
-rw-r--r-- | layouts/posts/list.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/posts/list.xml b/layouts/posts/list.xml index 7a4157f..17e054b 100644 --- a/layouts/posts/list.xml +++ b/layouts/posts/list.xml @@ -2,7 +2,7 @@ {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} {{- $pages := slice -}} {{- range .Sections.Reverse -}} -{{- $pages = (append $pages .RegularPages) }} +{{- $pages = (append $pages (where .RegularPages "Draft" false)) }} {{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} |