1
Fork 0
blog/posts.liquid
2018-01-01 12:04:05 -07:00

21 lines
495 B
Plaintext

permalink: /posts
title: Posts
layout: simple.liquid
data:
route: posts
---
{% assign years = "2017, 2016, 2015, 2014, 2013, 2012, 2011" | split: ", " %}
{% for year in years %}
<h3>{{year}}</h3>
<ul>
{% for post in collections.posts.pages %}
{% assign postyear = post.published_date | date: "%Y" %}
{% if postyear == year %}
<li>{{ post.published_date | date: "%d %b"}}: <a href="/{{post.permalink }}">{{post.title}}</a></li>
{% endif %}
{% endfor %}
</ul>
{%endfor%}