layout/skeleton/_atom.xml @ 664b58187482

Fix the feed, for now.
author Steve Losh <steve@stevelosh.com>
date Sun, 20 Jun 2010 15:40:48 -0400
parents d32b37e73149
children 25ec02499fbc
<?xml version="1.0" encoding="utf-8"?>

{% spaceless %}

<feed xmlns="http://www.w3.org/2005/Atom">
    <title>{% block title %}{{ site.name }}{% endblock %}</title>
    
    {% block self_url %}
        <link href="{{ page.node.full_url }}/feed/" rel="self" />
    {% endblock %}
    
    {% block site_url %}
        <link href="{{ site.full_url }}"/>
    {% endblock %}
    
    {% block feed_extra %}{% endblock %}
    
    <updated>{{ now|xmldatetime }}</updated>
    
    <id>{{ site.full_url }}/</id>
    
    {% recent_posts recents 4 page.blog_node %}

    {% for post in recents %}
        {% if not post.listing and not post.exclude %}
            <entry>
                <title type="html">{{ post.title }}</title>
                <author><name>{{ site.author }}</name></author>
                <link href="{{ post.full_url }}"/>
                <updated>{{ post.created|xmldatetime }}</updated>
                <published>{{ post.created|xmldatetime }}</published>
                <id>{{ post.full_url }}</id>
                {% block entry_extra %}{% endblock %}
                <content type="html">
                    {% filter force_escape %}
                        {% render_article post %}
                    {% endfilter %}
                </content>
            </entry>
        {% endif %}
    {% endfor %}
</feed>

{% endspaceless %}