Add more fields to RSS items (#546)

* Add more fields to RSS items

* replace author by dc:creator and description with excerpt
This commit is contained in:
Emi
2023-01-30 00:03:10 +01:00
committed by GitHub
parent f55555226d
commit a50f164e2e

View File

@@ -16,8 +16,14 @@ permalink: /rss.xml
<item>
<title>{{ post.title }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<description>{{ post.content | xml_escape }}</description>
<description>{{ post.excerpt }}</description>
{% for category in post.categories %}
<category>{{ site.data.categories[category][0].name }}</category>
{% endfor %}
<guid>{{ site.url }}{{ post.url }}</guid>
<dc:creator>{{ post.author }}</dc:creator>
<pubDate>{{ post.date | date: "%a, %d %b %Y %X +0000" }}</pubDate>
<image>{{ site.url }}{{ post.image }}</image>
</item>
{% endfor %}