diff options
author | mms <michal@sapka.me> | 2024-03-17 22:15:45 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-03-17 22:15:45 +0100 |
commit | baa60aee1ec1226b0c0e29fe7977c6ab6ae8f24a (patch) | |
tree | f05a7d84a910759d0b71b1e8c69604202ed08d1f /layouts/_default | |
parent | b42de7befc83fc17313ee5402c6568fa7825dce0 (diff) |
fix: rss subsections
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/rss.xml | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ <link>{{ .Permalink }}</link> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} - <guid>{{ .Permalink }}</guid>j + <guid>{{ .Permalink }}</guid> <description>{{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }}<p style="font-style:italic">Comment via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]></description> </item> {{- end }} |