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/archives.haml | |
parent | 2b4c5948b36ed1054dab270444df51fd4c38196f (diff) | |
download | my_new_personal_website-82d0251da120186c27791b7c073aa103d73c2b31.tar.xz my_new_personal_website-82d0251da120186c27791b7c073aa103d73c2b31.zip |
improved starting point
Diffstat (limited to 'source/archives.haml')
-rw-r--r-- | source/archives.haml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/archives.haml b/source/archives.haml new file mode 100644 index 00000000..5d78d942 --- /dev/null +++ b/source/archives.haml @@ -0,0 +1,14 @@ +--- +layout: default +title: Blog Archives +--- +%h2 Blog Archives + +- posts = site.posts.group_by { |p| p.date.strftime("%Y") } +- posts.keys.each do |year| + %h3= year + %ul + - posts[year].each do |post| + %li(class="#{(post.data['link'] ? "link" : nil )}") + = link_to(post.title, post.url) + %span.pubdate= post.date.strftime("%d %b, %Y")
\ No newline at end of file |