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

atom.tmpl 824B

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