aboutsummaryrefslogtreecommitdiff
path: root/source/archives.haml
diff options
context:
space:
mode:
Diffstat (limited to 'source/archives.haml')
-rw-r--r--source/archives.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/archives.haml b/source/archives.haml
new file mode 100644
index 00000000..5d78d942
--- /dev/null
+++ b/source/archives.haml
@@ -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") \ No newline at end of file