mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-10 19:25:13 -05:00
14 lines
363 B
Plaintext
14 lines
363 B
Plaintext
---
|
|
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") |