
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.
29 lines
932 B
Cheetah
29 lines
932 B
Cheetah
{namespace coleslaw.theme.feeds}
|
|
|
|
{template rss}
|
|
<?xml version="1.0"?>{\n}
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>{$config.title}</title>
|
|
<link>{$config.domain}</link>
|
|
<atom:link href="{$config.domain}/rss.xml" rel="self" type="application/rss+xml" />
|
|
<language>en-us</language>
|
|
<pubDate>{$pubdate}</pubDate>
|
|
|
|
{foreach $post in $content.posts}
|
|
<item>
|
|
<title>{$post.title}</title>
|
|
<link>{$config.domain}/posts/{$post.slug}{$config.pageExt}</link>
|
|
<pubDate>{$post.date}</pubDate>
|
|
<author>{$config.author}</author>
|
|
<guid isPermaLink="true">{$config.domain}/posts/{$post.slug}{$config.pageExt}</guid>
|
|
{foreach $tag in $post.tags}
|
|
<category><![CDATA[ {$tag} ]]></category>
|
|
{/foreach}
|
|
<description><![CDATA[ {$post.text |noAutoescape} ]]></description>
|
|
</item>
|
|
{/foreach}
|
|
|
|
</channel>
|
|
</rss>
|
|
{/template}
|