diff --git a/layouts/section/posts.rss.xml b/layouts/section/posts.rss.xml
index e74f6e0a..b80f74bf 100644
--- a/layouts/section/posts.rss.xml
+++ b/layouts/section/posts.rss.xml
@@ -10,7 +10,11 @@
{{.}}{{end}}{{ if not .Date.IsZero }}
{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
- {{ range $items := (where .Site.Pages "Params.type" "in" .Params.types).ByDate.Reverse }}
+ {{- $items := (where (where .Site.Pages "Section" "posts") "Type" "!=" "posts").ByDate.Reverse }}
+ {{- if .Params.types }}
+ {{- $items = (where .Site.Pages "Params.type" "in" .Params.types).ByDate.Reverse -}}
+ {{ end -}}
+ {{ range $items }}
-
{{ .Title }}
{{ .Permalink }}
@@ -19,7 +23,7 @@
{{ .Permalink }}
{{ .Content | html }}
- {{ end }}
+ {{- end }}