Skip to content

Instantly share code, notes, and snippets.

@mrw34

mrw34/blog.xml

Created May 26, 2014
Embed
What would you like to do?
Minimal Jekyll Atom feed template
---
---
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{site.title}}</title>
<id>http://{{site.domain}}/</id>
<updated>{{site.time | date_to_xmlschema}}</updated>
<link href="http://{{site.domain}}/blog.xml" rel="self"/>
{% for post in site.posts %}
<entry>
<title>{{post.title}}</title>
<author><name>{{post.author}}</name></author>
<id>http://{{site.domain}}/{{post.id}}</id>
<updated>{{post.date | date_to_xmlschema}}</updated>
<content type="html">{{post.content | xml_escape}}</content>
</entry>
{% endfor %}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment