improved starting point

This commit is contained in:
B Mathis
2009-10-18 19:07:36 -05:00
parent 2b4c5948b3
commit 82d0251da1
12 changed files with 839 additions and 3 deletions

14
source/archives.haml Normal file
View File

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