view piecrust/resources/prepare/atom.html @ 334:b034f6f15e22

bake: Several bug taxonomy-related fixes for incorrect incremental bakes. * Improve how the baker processes taxonomy terms and figures out what needs to be re-baked or not. * Create bake entries for clean taxnomy terms so they're not deleted by an incremental bake. * Add more information to bake records. * Slugify taxonomy terms is now done by the route in one place. * Fix a bug where the cache key for invalidating rendered segments was not computed the same way as when the caching was done. * Fix how term combinations are passed around, rendered, printed, parsed, etc. (TODO: more word needed in the routing functions) * Expose to the template whether a taxonomy term is a combination or not. * Display term combinations better in the built-in theme. * Rename `route.taxonomy` to `route.taxonomy_name` to prevent confusion. * Add options to show bake records for previous bakes.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 03 Apr 2015 10:59:50 -0700
parents f485ba500df3
children
line wrap: on
line source

---
description: 
read_more_text: "Read more..."
language: 
categories:
ttl:
layout: none
format: none
post_count: 10
content_type: xml
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>{{site.title}}</title>
    {% if page.description %}
    <subtitle>{{page.description}}</subtitle>
    {% else %}
    <subtitle>Latest news from {{site.title}}</subtitle>
    {% endif %}
    <link href="{{page.url}}" rel="self" />
    <link href="{{site.root}}" />
    <id>{{site.root}}</id>
    <updated>{{now|atomdate}}</updated>
    
    {% for post in blog.posts.limit(page.post_count) %}
	{% set author = site.author %}
    {% if post.author %}{% set author = post.author %}{% endif %}
	{% if not author %}{{pcfail("Atom feeds require an author for each post. You can specify a global author with the 'site.author' config.")}}{% endif %}
    <entry>
        <title>{{post.title}}</title>
        <link href="{{post.url}}" />
        <link rel="alternate" type="text/html" href="{{post.url}}"/>
        <id>{{post.url}}</id>
        <updated>{{post.timestamp|atomdate}}</updated>
        <content type="html">{{post.content}}
		{% if post.has_more and page.read_more_text %}
		{{ ("<a href=\"" ~ post.url ~ "\">" ~ page.read_more_text ~ "</a>")|escape }}
		{% endif %}
		</content>
		{% if author %}
        <author>
            <name>{{author}}</name>
        </author>
		{% endif %}
    </entry>
    {% endfor %}

</feed>