<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title type="text">{{ title }}</title>
    <subtitle type="text">{{ subtitle }}</subtitle>
    <id>{{ id }}</id>
    <updated>{{ updated|date:"Y-m-d\TH:i:s" }}Z</updated>
    <link rel="alternate" type="text/html" hreflang="en" href="http://{{ request.get_host }}/"/>
    <link rel="self" type="application/atom+xml" href="http://{{ request.get_host }}{{ request.get_full_path }}"/>
    <rights>{{ rights }}</rights>

    {% for entry in entries %}
    {% if entry.summary %}
    <entry>
        {% if entry.title %}
        <title>{{ entry.title }}</title>
        {% endif %}

        {% if entry.link %}
        <link href="{{ entry.link }}"/>
        {% endif %}

        <id>{{ entry.id }}</id>
        
        {% if entry.updated %}
        <updated>{{ entry.updated|date:"Y-m-d\TH:i:s" }}Z</updated>
        {% endif %}
        
        {% if entry.published %}
        <published>{{ entry.published|date:"Y-m-d\TH:i:s" }}</published>
        {% endif %}
        
        {% if entry.author %}
        <author>
            <name>{{ entry.author }}</name>
        </author>
        {% endif %}
        
        {% if entry.summary %}
        <summary type="html">{{ entry.summary }}</summary>
        {% endif %}

    </entry>
    {% endif %}
    {% endfor %}
    
</feed>
