<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>{{ config.title }}</title>
    <link rel="alternate" type="text/html" href="{{ config.url }}" />
    <link rel="self" type="application/atom+xml" href="{{ config.url }}atom.xml" />
    <id>{{ config.url }}/</id>
{% for post in posts %}
{% if loop.first %}
    <updated>{{ post.date.strftime('%Y-%m-%dT%H:%I:%SZ') }}</updated>
{% endif %}
<entry>
    <title>{{ post.title|striptags|e }}</title>
    <link rel="alternate" type="text/html" href="{{ config.url }}{{ post.url }}" />
    <id>tag:{{ config.url.split('/')[2] }},{{ post.date.strftime('%Y-%m-%d') }}:{{ post.url }}</id>
    <updated>{{ post.date.strftime('%Y-%m-%dT%H:%I:%SZ') }}</updated>
    <summary type="html">
      {{ post.summary|e }}
    	&lt;p&gt;&lt;a href="{{ config.url }}{{ post.url }}"&gt;Permalink&lt;/p&gt;
    </summary>
    <author>
        <name>{{ config.author.name }}</name>
        <email>{{ config.author.email }}</email>
    </author>
    {% for keyword in post.parsed.keywords.split(",") %}
    <category term="{{ keyword.strip() }}" />
    {% endfor %}
    <content type="html">
    	{{ post.html|e }}
    	&lt;p&gt;&lt;a href="{{ config.url }}{{ post.url }}"&gt;Permalink&lt;/p&gt;
    </content>
</entry>
{% endfor %}
</feed>
