blog/source/atom.haml

25 lines
679 B
Plaintext
Raw Normal View History

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