Skip to content

Instantly share code, notes, and snippets.

@graue
Created March 18, 2013 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graue/5184195 to your computer and use it in GitHub Desktop.
Save graue/5184195 to your computer and use it in GitHub Desktop.
My Atom (i.e. "RSS") feed template for Jekyll
---
layout: nil
---
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Divagations of a graphomane</title>
<link href="http://scott.mn/"/>
<link type="application/atom+xml" rel="self" href="http://scott.mn/posts.atom"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://scott.mn/</id>
<author>
<name>Scott F</name>
<email>scott@oceanbase.org</email>
<uri>http://scott.mn/</uri>
</author>
{% for post in site.posts %}
<entry>
<id>http://scott.mn{{ post.id }}</id>
<link type="text/html" rel="alternate" href="http://scott.mn{{ post.url }}"/>
<title>{{ post.title }}</title>
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<author>
<name>Scott F</name>
<email>scott@oceanbase.org</email>
<uri>http://scott.mn/</uri>
</author>
<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