aboutsummaryrefslogtreecommitdiff
path: root/source/archives.haml
blob: 4daba19c9679e050d1e2871df14f56350fcfbfe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
layout: default
title: Blog Archives
---
%h2 Blog Archives

- posts = site.posts.reverse.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")