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