www.moparisthebest.com/source/atom.haml

25 lines
664 B
Plaintext
Raw Normal View History

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