Skip to content

Instantly share code, notes, and snippets.

@esbullington
Created September 15, 2012 06:05
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 esbullington/3726527 to your computer and use it in GitHub Desktop.
Save esbullington/3726527 to your computer and use it in GitHub Desktop.
Jinja template for Atom feed
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site_title }}</title>
<link href="{{ feed_url }}" rel="self"/>
<link href="{{ site_url }}"/>
<updated>{{ updated }}</updated>
<id>{{ id }}</id>
{% for post in articles %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ post.url }}"/>
<id>{{ post.atom_id }}</id>
<updated>{{ post.date }}</updated>
<summary type='html'>{{ post.summary | markdown }}</summary>
<!-- <content type="html"></content> -->
<author>
<name>{{ post.author_name }}</name>
</author>
</entry>
{% endfor %}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment