Use page description for RSS feed description

This commit is contained in:
Will Faught
2023-09-22 22:33:58 -07:00
parent db9d8a41c5
commit 9665e6566e

View File

@@ -1,5 +1,6 @@
{{ $page := . }} {{ $page := . }}
{{ $description := $page.Description }}
{{ $limit := site.Config.Services.RSS.Limit }} {{ $limit := site.Config.Services.RSS.Limit }}
{{ $pages := (cond $page.IsHome site $page).RegularPages }} {{ $pages := (cond $page.IsHome site $page).RegularPages }}
{{ $title := partial "paige/title.html" $page }} {{ $title := partial "paige/title.html" $page }}
@@ -20,7 +21,7 @@
{{ with site.Copyright }} {{ with site.Copyright }}
<copyright>{{ . }}</copyright> <copyright>{{ . }}</copyright>
{{ end }} {{ end }}
<description>{{ with $title -}} {{- . -}} {{- else -}} Recent content {{- end }}</description> <description>{{ with $description -}} {{- . -}} {{- else -}} Recent content {{- end }}</description>
{{ with site.LanguageCode | default site.Language.Lang }} {{ with site.LanguageCode | default site.Language.Lang }}
<language>{{ . }}</language> <language>{{ . }}</language>
{{ end }} {{ end }}