diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index 58046e68..9ee25717 100644 --- a/themes/buha/layouts/_default/rss.xml +++ b/themes/buha/layouts/_default/rss.xml @@ -6,6 +6,9 @@ {{- else -}} {{- $pages = $pctx.Pages -}} {{- end -}} +{{- if eq .Section "news" -}} +{{- $pages = where .Site.RegularPages "Type" "in" site.Params.mainSections -}} +{{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} diff --git a/themes/buha/layouts/partials/footer.html b/themes/buha/layouts/partials/footer.html index b9a49bd7..7c98fb04 100644 --- a/themes/buha/layouts/partials/footer.html +++ b/themes/buha/layouts/partials/footer.html @@ -16,16 +16,11 @@