
We partially support 'pretty URLs'. They can be achieved by setting :page-ext in the *config* to "/" and configuring the web server to ignore html extensions.
30 lines
821 B
Cheetah
30 lines
821 B
Cheetah
{namespace coleslaw.theme.feeds}
|
|
|
|
{template atom}
|
|
<?xml version="1.0"?>{\n}
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<title>{$config.title}</title>
|
|
<link href="{$config.domain}"/>
|
|
<link type="application/atom+xml" rel="self" href="{$config.domain}/atom.xml"/>
|
|
<updated>{$pubdate}</updated>
|
|
<author>
|
|
<name>{$config.author}</name>
|
|
</author>
|
|
|
|
{foreach $post in $content.posts}
|
|
<entry>
|
|
<link type="text/html" rel="alternate" href="{$config.domain}/posts/{$post.slug}{$config.pageExt}"/>
|
|
<title>{$post.title}</title>
|
|
<published>{$post.date}</published>
|
|
<updated>{$post.date}</updated>
|
|
<author>
|
|
<name>{$config.author}</name>
|
|
<uri>{$config.domain}</uri>
|
|
</author>
|
|
<content type="html">{$post.text |escapeHtml}</content>
|
|
</entry>
|
|
{/foreach}
|
|
|
|
</feed>
|
|
{/template}
|