Add author and id to feed

This commit is contained in:
mathiascode 2019-12-01 07:34:36 +02:00
parent 2c920ee874
commit 28b129789c

View file

@ -5,14 +5,17 @@ layout: minify
<feed xmlns="http://www.w3.org/2005/Atom"> <feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }} - News</title> <title>{{ site.title }} - News</title>
<subtitle>{{ site.description }}</subtitle> <subtitle>{{ site.description }}</subtitle>
<pubDate>{{ site.time | date_to_xmlschema }}</pubDate> <published>{{ site.time | date_to_xmlschema }}</published>
<link href="{{ site.url }}/"/> <link href="{{ site.url }}/"/>
<link href="{{ site.url }}/feed.xml" rel="self"/> <link href="{{ site.url }}/feed.xml" rel="self"/>
{% for post in site.posts %} {% for post in site.posts %}
<entry> <entry>
<title>{{ post.date | date: "%B %e, %Y" }}</title> <title>{{ post.date | date: "%B %e, %Y" }}</title>
<author>{{ site.title }}</author>
<content type="html">{{ post.content | xml_escape }}</content> <content type="html">{{ post.content | xml_escape }}</content>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate> <published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ post.id | xml_escape }}</id>
<link href="{{ site.url }}/news/"/> <link href="{{ site.url }}/news/"/>
</entry> </entry>
{% endfor %} {% endfor %}