summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-04 11:08:13 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-04 11:08:13 +0200
commita8ef100b6b1a70ec7e2d0246943b9bf938bbe5d1 (patch)
treede813bc275cf633c8c29609d9d18395d1fe79b94
parent1f6f3b00b06a2cb3c829c5dbbc12a9aa2b9e56a6 (diff)
Dont include drafts in RSS feed
-rw-r--r--layouts/posts/list.xml2
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 -}}