Print the page description in RSS feed

The RSS feed used to print the first chars of the page in the
"description" field. Since there is a description at the page
level, it's now displayed instead.
It should provide a cleaner and complete description.
This commit is contained in:
Nalysius
2024-03-09 12:02:58 +01:00
parent a6d5f76806
commit 50d37d355a

View File

@ -19,7 +19,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Params.author.email }}<author>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description>
<description>{{ printf `<![CDATA[%s]]>` .Page.Params.description | safeHTML }}</description>
<content type="html">{{ printf `<![CDATA[%s]]>` .Content | safeHTML }}</content>
</item>
{{ end }}