brokenco.de/_layouts/archive.html

15 lines
454 B
HTML

---
layout: default
title: Archive
---
{% assign postsByDate =
site.posts | group_by_exp:"post", "post.date | date: '%B %Y'" %}
{% for year in postsByDate %}
<h2 class = "archive-date" id = "date-{{post.date | date: "%B %Y"}}">{{ year.name }}</h1>
<ul>
{% for post in year.items %}
<li><a class = "archive-link" href="{{ post.url | relative_url}}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}