1
Fork 0
blog/posts.liquid

21 lines
439 B
Plaintext
Raw Normal View History

2017-07-09 12:18:22 +00:00
extends: simple.liquid
title: Posts
route: posts
path: /posts
2013-05-10 18:18:10 +00:00
---
2017-07-09 12:18:22 +00:00
{% assign years = "2017, 2016, 2015, 2014, 2013, 2012, 2011" | split: ", " %}
{% for year in years %}
2017-07-09 14:05:40 +00:00
<h3>{{year}}</h3>
<ul>
2017-07-09 12:18:22 +00:00
{% for post in posts %}
{% assign postyear = post.date | date: "%Y" %}
{% if postyear == year %}
2017-07-09 14:05:40 +00:00
<li>{{post.date | date: "%d %b"}}: <a href="/{{post.path}}">{{post.title}}</a></li>
2017-07-09 12:18:22 +00:00
{% endif %}
{% endfor %}
2017-07-09 14:05:40 +00:00
</ul>
2017-07-09 12:18:22 +00:00
{%endfor%}