diff options
author | B Mathis <brandon@imathis.com> | 2009-10-18 19:07:36 -0500 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-10-18 19:07:36 -0500 |
commit | 82d0251da120186c27791b7c073aa103d73c2b31 (patch) | |
tree | ed8c90ca49e21c160ed119ab6a297c614d9c5e73 /source/atom.haml | |
parent | 2b4c5948b36ed1054dab270444df51fd4c38196f (diff) | |
download | my_new_personal_website-82d0251da120186c27791b7c073aa103d73c2b31.tar.xz my_new_personal_website-82d0251da120186c27791b7c073aa103d73c2b31.zip |
improved starting point
Diffstat (limited to '')
-rw-r--r-- | source/atom.haml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/atom.haml b/source/atom.haml new file mode 100644 index 00000000..d8cfe040 --- /dev/null +++ b/source/atom.haml @@ -0,0 +1,21 @@ +--- +layout: nil +--- +<?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") + %updated= Time.now.xmlschema + %id http://yoursite.com/ + %author + %name Your Name + %email user[at]domain.com + - site.posts[0..14].each do |post| + %entry + %title= rp(post.title) + %link(href="#{full_url(post.url)}") + %updated=post.date.xmlschema + %id= full_url(post.id) + %content(type="html") + = h(absolute_url(rp(post.content)))
\ No newline at end of file |