themes/atom.tmpl (799 bytes)
1 {namespace coleslaw.theme.feeds} 2 3 {template atom} 4 <?xml version="1.0"?>{\n} 5 <feed xmlns="http://www.w3.org/2005/Atom"> 6 7 <title>{$config.title}</title> 8 <link href="{$config.domain}"/> 9 <link type="application/atom+xml" rel="self" href="{$config.domain}/atom.xml"/> 10 <updated>{$pubdate}</updated> 11 <author> 12 <name>{$config.author}</name> 13 </author> 14 15 {foreach $post in $content.content} 16 <entry> 17 <link type="text/html" rel="alternate" href="{$config.domain}/{$post.url}"/> 18 <title>{$post.title}</title> 19 <published>{$post.date}</published> 20 <updated>{$post.date}</updated> 21 <author> 22 <name>{$config.author}</name> 23 <uri>{$config.domain}</uri> 24 </author> 25 <content type="html">{$post.text |escapeHtml}</content> 26 </entry> 27 {/foreach} 28 29 </feed> 30 {/template}