blog/source/archives.haml

14 lines
363 B
Plaintext
Raw Normal View History

2009-10-19 00:07:36 +00:00
---
layout: default
title: Blog Archives
---
%h2 Blog Archives
- posts = site.posts.reverse.group_by { |p| p.date.strftime("%Y") }
2009-10-19 00:07:36 +00:00
- 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")