layouts: Add full content to RSS entries

Adds the full content of blog posts to RSS entries, by using the
`<content:encoded>` tag.

Fixes https://github.com/yuzu-emu/yuzu-emu.github.io/issues/299

Resources:
* https://web.resource.org/rss/1.0/modules/content/
This commit is contained in:
Michael Manganiello 2023-04-19 10:59:20 -03:00 committed by liushuyu
parent c497835859
commit e86ed45e26

View File

@ -1,4 +1,4 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel> <channel>
<title>{{ .Title }} on {{ .Site.Title }} </title> <title>{{ .Title }} on {{ .Site.Title }} </title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
@ -14,6 +14,7 @@
<author>{{ .Params.Author }}</author> <author>{{ .Params.Author }}</author>
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description> <description>{{ .Summary | html }}</description>
<content:encoded>{{ .Content | html }}</content:encoded>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>