diff options
author | B Mathis <brandon@imathis.com> | 2009-10-20 08:50:16 -0500 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-10-20 08:50:16 -0500 |
commit | e0a0d093c44481d1fada3ab4bb9a0c5cf1276524 (patch) | |
tree | 95f73f688f0065a212c04cc9e180957a420fa22e /source/atom.haml | |
parent | a72b96142a3a9c55ef661863484a26bc02103169 (diff) | |
download | my_new_personal_website-e0a0d093c44481d1fada3ab4bb9a0c5cf1276524.tar.xz my_new_personal_website-e0a0d093c44481d1fada3ab4bb9a0c5cf1276524.zip |
paramaterized feed, rsync deployment, and unified layouts
Diffstat (limited to '')
-rw-r--r-- | source/atom.haml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/atom.haml b/source/atom.haml index 67038c11..bcb370f6 100644 --- a/source/atom.haml +++ b/source/atom.haml @@ -1,25 +1,25 @@ --- layout: nil -address: http://yoursite.com +author: Your Name email: author@domain.com -name: Your Name -blog_title: My Blog +blog_title: My Octopress Blog +root_url: http://yoursite.com --- -<?xml version="1.0" encoding="utf-8"?> +!!! XML %feed(xmlns="http://www.w3.org/2005/Atom") - %title= "#{page.name} - #{page.blog_title}" - %link(href="#{page.address}/atom.xml" rel="self") - %link(href="#{page.address}") + %title= page.blog_title + %link(href="#{page.root_url}/atom.xml" rel="self") + %link(href="#{page.root_url}") %updated= Time.now.xmlschema - %id=page.address + %id=page.root_url %author - %name= page.name + %name= page.author %email= page.email - site.posts[0..14].each do |post| %entry %title= rp(post.title) - %link(href="#{full_url(post.url)}") + %link(href="#{page.root_url}#{post.url}") %updated=post.date.xmlschema - %id= full_url(post.id) + %id= "#{page.root_url}#{post.id}" %content(type="html") = h(absolute_url(rp(post.content)))
\ No newline at end of file |