source/atom.haml
82d0251d
 ---
 layout: nil
e0a0d093
 author: Your Name
f5aca904
 email: author@domain.com
e0a0d093
 blog_title: My Octopress Blog
 root_url: http://yoursite.com
82d0251d
 ---
e0a0d093
 !!! XML
82d0251d
 %feed(xmlns="http://www.w3.org/2005/Atom")
e0a0d093
   %title= page.blog_title
   %link(href="#{page.root_url}/atom.xml" rel="self")
   %link(href="#{page.root_url}")
82d0251d
   %updated= Time.now.xmlschema
e0a0d093
   %id=page.root_url
82d0251d
   %author
e0a0d093
     %name= page.author
f5aca904
     %email= page.email
82d0251d
   - site.posts[0..14].each do |post|
     %entry
       %title= rp(post.title)
e0a0d093
       %link(href="#{page.root_url}#{post.url}")
82d0251d
       %updated=post.date.xmlschema
e0a0d093
       %id= "#{page.root_url}#{post.id}"
82d0251d
       %content(type="html")
         = h(absolute_url(rp(post.content)))