My personal blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
355 B

---
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")