diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 473a96f..cb728d9 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,6 +1,6 @@ {{- $pctx := . -}} {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{- $pages := $pctx.RegularPages -}} +{{- $pages := where $pctx.RegularPages ".Params.disable_feed" "!=" true -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} @@ -31,4 +31,4 @@ {{ end }} - \ No newline at end of file +