layout/skeleton/_atom.xml @ 37c769f2a211

Final tweaks
author Steve Losh <steve@stevelosh.com>
date Fri, 19 Feb 2016 19:48:12 +0000
parents 25ec02499fbc
children (none)
<?xml version="1.0" encoding="utf-8"?>

{% spaceless %}

<feed xmlns="http://www.w3.org/2005/Atom">
    <title>{% block title %}{{ site.name }}{% endblock title %}</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 %}