Skip to content

Instantly share code, notes, and snippets.

@mrw34
Created May 26, 2014 19:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrw34/6b253685fab3ede4284b to your computer and use it in GitHub Desktop.
Save mrw34/6b253685fab3ede4284b to your computer and use it in GitHub Desktop.
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