summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/rss.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 6e6480b7..0ae7a769 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 }}