mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
improved starting point
This commit is contained in:
14
source/archives.haml
Normal file
14
source/archives.haml
Normal 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")
|
||||
Reference in New Issue
Block a user