diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index 58046e6..9ee2571 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 b9a49bd..7c98fb0 100644 --- a/themes/buha/layouts/partials/footer.html +++ b/themes/buha/layouts/partials/footer.html @@ -16,16 +16,11 @@
- {{ if or (eq .Section "news") (eq .Section "orga") }} - RSS

- {{ else }} - {{- with .OutputFormats.Get "rss" -}} - {{- if .Permalink -}} - {{- printf `` .Permalink | safeHTML -}} - {{- end -}} - RSS

+ {{- with .OutputFormats.Get "rss" -}} + {{- if .Permalink -}} + {{- printf `` .Permalink | safeHTML -}} {{- end -}} - {{ end }} - + RSS

+ {{- end -}} Sourcecode