Flexible Lisp Blogware. Fork for personal use. Mirrored from https://github.com/kingcons/coleslaw originally.

rss.tmpl 905B

123456789101112131415161718192021222324252627282930
  1. {namespace coleslaw.theme.feeds}
  2. {template rss}
  3. <?xml version="1.0"?>{\n}
  4. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  5. <channel>
  6. <title>{$config.title}</title>
  7. <link>{$config.domain}</link>
  8. <atom:link href="{$config.domain}/rss.xml" rel="self" type="application/rss+xml" />
  9. <language>en-us</language>
  10. <pubDate>{$pubdate}</pubDate>
  11. {foreach $post in $content.content}
  12. <item>
  13. <title>{$post.title}</title>
  14. <link>{$config.domain}/{$post.url}</link>
  15. <pubDate>{$post.date}</pubDate>
  16. <author>{$config.author}</author>
  17. <guid isPermaLink="true">{$config.domain}/{$post.url}</guid>
  18. {foreach $tag in $post.tags}
  19. <category><![CDATA[ {$tag.name |noAutoescape} ]]></category>
  20. {/foreach}
  21. <description><![CDATA[ {$post.text |noAutoescape} ]]></description>
  22. </item>
  23. {/foreach}
  24. </channel>
  25. </rss>
  26. {/template}