diff options
author | Patrick Spek <p.spek@tyil.nl> | 2018-07-16 16:23:51 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2018-07-16 16:25:35 +0200 |
commit | 58ca81524000b6e9ccd7e1de8bcba477dc6b9bc4 (patch) | |
tree | 1ce6dc924b95f2fd5e172f4898c7dc628733bba4 /atom.xml | |
parent | 008088e899c753cedaa8d8af79fc9b05823f95c9 (diff) |
Update feed.xml to atom.xml
Diffstat (limited to 'atom.xml')
-rw-r--r-- | atom.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/atom.xml b/atom.xml new file mode 100644 index 0000000..e3395a1 --- /dev/null +++ b/atom.xml @@ -0,0 +1,31 @@ +--- +layout: null +--- +{% assign documents = site.documents | where: 'feed', true | sort: 'date' | reverse %}<?xml version="1.0" encoding="UTF-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>{{ site.url }}{{ site.baseurl }}/</id> + <title>{{ site.title | xml_escape }}</title> + <subtitle>{{ site.description | strip | xml_escape }}</subtitle> + <updated>{{ site.time | date_to_xmlschema }}</updated> + <link rel="alternate" type="text/html" href="{{ site.url }}{{ site.baseurl }}"/> + <link rel="self" type="application/atom+xml" href="{{ site.url }}{{ site.baseurl }}/atom.xml"/> + <author> + <name>{{ site.author }}</name> + <email>{{ site.email }}</email> + </author> + <generator version="{{ jekyll.version }}">Jekyll</generator>{% for post in documents limit:10 %} + <entry> + <id>{{ site.url }}{{ site.baseurl }}{{ post.url }}</id> + <title>{{ post.title | xml_escape }}</title> + <author> + <name>{{ site.author }}</name> + <email>{{ site.email }}</email> + </author> + <updated>{{ post.date | date_to_xmlschema }}</updated> + <link rel="alternate" type="text/html" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" />{% if post.description %} + <summary>{{ post.description | strip | xml_escape }}</summary>{% endif %} + <content>{{ post.content | strip_html }}</content>{% for tag in post.tags %} + <category term="{{ tag | xml_escape }}" />{% endfor %}{% for cat in post.categories %} + <category term="{{ cat | xml_escape }}" />{% endfor %} + </entry>{% endfor %} +</feed> |