diff options
author | B Mathis <brandon@imathis.com> | 2009-10-18 20:42:54 -0500 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-10-18 20:42:54 -0500 |
commit | f5aca904350a52e108464c7ba641d7a0a0d9d108 (patch) | |
tree | 290402dccaa5634e2f4279f31646a6009e8aa29f /source/atom.haml | |
parent | d8d51719fb2ec7cb2ee70dab4665c74baa0fb783 (diff) | |
download | my_new_personal_website-f5aca904350a52e108464c7ba641d7a0a0d9d108.tar.xz my_new_personal_website-f5aca904350a52e108464c7ba641d7a0a0d9d108.zip |
paramaterized layout and page files
Diffstat (limited to '')
-rw-r--r-- | source/atom.haml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/atom.haml b/source/atom.haml index d8cfe040..67038c11 100644 --- a/source/atom.haml +++ b/source/atom.haml @@ -1,16 +1,20 @@ --- layout: nil +address: http://yoursite.com +email: author@domain.com +name: Your Name +blog_title: My Blog --- <?xml version="1.0" encoding="utf-8"?> %feed(xmlns="http://www.w3.org/2005/Atom") - %title Your Name - Your Site - %link(href="yoursite.com/atom.xml" rel="self") - %link(href="yoursite.com") + %title= "#{page.name} - #{page.blog_title}" + %link(href="#{page.address}/atom.xml" rel="self") + %link(href="#{page.address}") %updated= Time.now.xmlschema - %id http://yoursite.com/ + %id=page.address %author - %name Your Name - %email user[at]domain.com + %name= page.name + %email= page.email - site.posts[0..14].each do |post| %entry %title= rp(post.title) |