From baa60aee1ec1226b0c0e29fe7977c6ab6ae8f24a Mon Sep 17 00:00:00 2001 From: mms Date: Sun, 17 Mar 2024 22:15:45 +0100 Subject: fix: rss subsections --- layouts/_default/rss.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 6e6480b..0ae7a76 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -33,8 +33,10 @@ {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} -{{- if or $.IsHome $.IsSection }} +{{- if $.IsHome }} {{- $pages = $pctx.RegularPages}} +{{- else if $.IsSection }} +{{- $pages = $pctx.RegularPagesRecursive}} {{- else }} {{- $pages = $pctx.Pages }} {{- end }} @@ -63,7 +65,7 @@ {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} - {{ .Permalink }}j + {{ .Permalink }} {{ safeHTML "Comment via email

]]>
{{- end }} -- cgit v1.2.3