Recently Written · git

coleslaw

Emacs mode for the "Coleslaw" site generator written in Common Lisp.

git clone https://github.com/equwal/coleslaw

Log | Files | Refs


themes/rss.tmpl (905 bytes)

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