summaryrefslogtreecommitdiff
path: root/feed.xml
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2018-07-16 15:59:10 +0200
committerPatrick Spek <p.spek@tyil.nl>2018-07-16 15:59:10 +0200
commit008088e899c753cedaa8d8af79fc9b05823f95c9 (patch)
treef0f834967b86d04963f4d3bd6347a4c5dd4541e6 /feed.xml
parent958d6e63f3772d9408865eaff8275ab0c5d70626 (diff)
Fix atom XML feed
Diffstat (limited to 'feed.xml')
-rw-r--r--feed.xml39
1 files changed, 21 insertions, 18 deletions
diff --git a/feed.xml b/feed.xml
index 6adf38b..d7f77cc 100644
--- a/feed.xml
+++ b/feed.xml
@@ -2,22 +2,25 @@
layout: null
---
{% assign documents = site.documents | where: 'feed', true | sort: 'date' | reverse %}<?xml version="1.0" encoding="UTF-8"?>
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>{{ site.title | xml_escape }}</title>
- <description>{{ site.description | xml_escape }}</description>
- <link>{{ site.url }}{{ site.baseurl }}/</link>
- <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
- <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
- <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
- <generator>Jekyll v{{ jekyll.version }}</generator>{% for post in documents limit:10 %}
- <item>
- <title>{{ post.title | xml_escape }}</title>
- <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
- <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
- <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>{% for tag in post.tags %}
- <category>{{ tag | xml_escape }}</category>{% endfor %}{% for cat in post.categories %}
- <category>{{ cat | xml_escape }}</category>{% endfor %}
- </item>{% endfor %}
- </channel>
+<rss version="2.0" xmlns="http://www.w3.org/2005/Atom">
+ <id>{{ site.url }}{{ site.baseurl }}</id>
+ <title>{{ site.title | xml_escape }}</title>
+ <description>{{ site.description | strip | xml_escape }}</description>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <link href="{{ site.url }}{{ site.baseurl }}" />
+ <author>
+ <name>{{ site.author }}</name>
+ <email>{{ site.email }}</email>
+ </author>
+ <generator version="{{ jekyll.version }}">Jekyll</generator>{% for post in documents limit:25 %}
+ <entry>
+ <id>{{ post.id }}</id>
+ <title>{{ post.title | xml_escape }}</title>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <link rel="alternate" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" />{% if post.description %}
+ <summary>{{ post.description | strip | xml_escape }}</summary>{% endif %}
+ <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>{% for tag in post.tags %}
+ <category term="{{ tag | xml_escape }}" />{% endfor %}{% for cat in post.categories %}
+ <category term="{{ cat | xml_escape }}" />{% endfor %}
+ </entry>{% endfor %}
</rss>