From 1efab6714ad55dcf48fe24c7f3304529232279b8 Mon Sep 17 00:00:00 2001 From: Reorx Date: Tue, 31 May 2022 00:43:13 +0800 Subject: [PATCH] make rss page query the same as list.html --- layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 56f11a9..5a6386f 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -2,7 +2,7 @@ {{- if .IsHome -}}{{ $pctx = site }}{{- end -}} {{- $pages := slice -}} {{- if or $.IsHome $.IsSection -}} -{{- $pages = $pctx.RegularPages -}} +{{- $pages = where $pctx.RegularPages "Type" "in" site.Params.mainSections }} {{- else -}} {{- $pages = $pctx.Pages -}} {{- end -}}