coleslaw/themes/rss.tmpl
2012-09-12 14:24:51 -04:00

29 lines
910 B
Cheetah

{namespace coleslaw.theme.hyde}
{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}.html</link>
<pubDate>{$post.date}</pubDate>
<author>{$config.author}</author>
<guid isPermaLink="true">{$config.domain}/posts/{$post.slug}.html</guid>
{foreach $tag in $post.tags}
<category><![CDATA[ {$tag} ]]></category>
{/foreach}
<description><![CDATA[ {$post.content |noAutoescape} ]]></description>
</item>
{/foreach}
</channel>
</rss>
{/template}