diff options
Diffstat (limited to 'posts.xml')
-rw-r--r-- | posts.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/posts.xml b/posts.xml new file mode 100644 index 0000000..06079a8 --- /dev/null +++ b/posts.xml @@ -0,0 +1,31 @@ +--- +layout: null +--- + +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + + <title>{{ site.title }}</title> + <link href="{{ site.url }}{{ site.baseurl }}/posts.xml" rel="self"/> + <link href="{{ site.url }}{{ site.baseurl }}/" rel="alternate" type="text/html"/> + <updated>{{ site.time | date_to_xmlschema }}</updated> + <id>{{ site.url }}/posts.xml</id> + <author> + <name>{{ site.author.name }}</name> + <email>{{ site.author.email }}</email> + </author> + + {% for post in site.posts %} + <entry> + <title type="html">{{ post.title }}</title> + <updated>{{ post.date | date_to_xmlschema }}</updated> + <published>{{ post.date | date_to_xmlschema }}</published> + <link href="{{ site.url }}{{ post.url }}" rel="alternate" type="text/html" title="{{ post.title }}"/> + <id>{{ site.url }}{{ post.url }}</id> + <content type="html" xml:base="{{ site.url }}{{ post.url }}"> + {{ post.content | xml_escape }} + </content> + </entry> + {% endfor %} + +</feed> |