1
Fork 0
blog/posts.liquid

22 lines
502 B
Plaintext
Raw Normal View History

2018-01-01 19:04:05 +00:00
permalink: /posts
2017-07-09 12:18:22 +00:00
title: Posts
2018-01-01 19:04:05 +00:00
layout: simple.liquid
data:
route: posts
2013-05-10 18:18:10 +00:00
---
2018-01-08 10:52:47 +00:00
{% assign years = "2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011" | split: ", " %}
2017-07-09 12:18:22 +00:00
{% for year in years %}
2017-07-09 14:05:40 +00:00
<h3>{{year}}</h3>
<ul>
2018-01-01 19:04:05 +00:00
{% for post in collections.posts.pages %}
{% assign postyear = post.published_date | date: "%Y" %}
2017-07-09 12:18:22 +00:00
{% if postyear == year %}
2018-01-01 19:04:05 +00:00
<li>{{ post.published_date | date: "%d %b"}}: <a href="/{{post.permalink }}">{{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%}