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