Skip to content

Instantly share code, notes, and snippets.

@navilan
Created March 2, 2009 16:53
Show Gist options
  • Save navilan/72853 to your computer and use it in GitHub Desktop.
Save navilan/72853 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
{%spaceless%}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{site.name}} {{page.node.name}}</title>
<link href="{{page.node.full_url}}/atom.xml" rel="self"/>
<link href="{{site.full_url}}"/>
<updated>{{now|xmldatetime}}</updated>
<id>{{site.full_url}}</id>
{% for node_page in page.node.walk_pages %}
{% if node_page.display_in_list %}
<entry>
<title>{{node_page.title}}</title>
<author><name>{{site.author}}</name></author>
<link href="{{node_page.full_url}}"/>
<updated>{{node_page.updated|default:node_page.created|xmldatetime}}</updated>
<published>{{node_page.created|xmldatetime}}</published>
<id>{{node_page.full_url}}</id>
<content type="html">
{%filter force_escape%}{% render_article node_page %}{%endfilter%}
</content>
</entry>
{%endif%}
{% endfor %}
</feed>
{%endspaceless%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment