diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-04-26 02:15:20 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-04-26 02:15:20 +0200 |
commit | 122142932752c43c02308a8d77bab51039c35796 (patch) | |
tree | 6517c1f06df328db80fb9cc39063aaf7010a6482 | |
parent | 67e430f429a1771ce721f38a5b65e8e5c4f52c40 (diff) |
Add an atom:link back
-rw-r--r-- | feed.xml | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2,7 +2,7 @@ layout: null --- {% assign documents = site.documents | where: 'feed', true | sort: 'date' | reverse %}<?xml version="1.0" encoding="utf-8"?> -<rss version="2.0"> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ site.title }}</title> <description>{{ site.description | strip | xml_escape }}</description> @@ -13,13 +13,14 @@ layout: null <pubDate>{{ site.time | date_to_rfc822 }}</pubDate> <docs>http://www.feedvalidator.org/docs/rss2.html</docs> <ttl>1440</ttl> - <generator>Jekyll v{{ jekyll.version }}</generator>{% for post in documents limit:10 %} + <generator>Jekyll v{{ jekyll.version }}</generator> + <atom:link href="{{ "/rss.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />{% for post in documents limit:10 %} <item> <title>{{ post.title }}</title> - <pubDate>{{ post.date | date_to_xmlschema }}</pubDate> + <pubDate>{{ post.date | date_to_rfc822 }}</pubDate> <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>{% if post.description %} <description>{{ post.description | strip | xml_escape }}</description>{% endif %} - <author>{{ site.author }} ({{ site.email }})</author>{% for tag in post.tags %} + <author>{{ site.email }} ({{ site.author }})</author>{% for tag in post.tags %} <category>{{ tag | xml_escape }}</category>{% endfor %}{% for cat in post.categories %} <category>{{ cat | xml_escape }}</category>{% endfor %} </item>{% endfor %} |