coleslaw/themes/rss.tmpl
2014-09-05 17:07:22 -04:00

29 lines
905 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.content}
<item>
<title>{$post.title}</title>
<link>{$config.domain}/{$post.url}</link>
<pubDate>{$post.date}</pubDate>
<author>{$config.author}</author>
<guid isPermaLink="true">{$config.domain}/{$post.url}</guid>
{foreach $tag in $post.tags}
<category><![CDATA[ {$tag.name |noAutoescape} ]]></category>
{/foreach}
<description><![CDATA[ {$post.text |noAutoescape} ]]></description>
</item>
{/foreach}
</channel>
</rss>
{/template}