--- layout: layouts/base.njk permalink: "/archive/" title: Archive ---

Archive

A chronological archive of all posts, organized by year and month.

{% set postsByYear = collections.posts | groupby("date.getFullYear()") %} {% for year, posts in postsByYear %}

{{ year }}

{% set postsByMonth = posts | groupby("date.getMonth()") %} {% for month, monthPosts in postsByMonth %}

{{ monthPosts[0].date | readableDate("MMMM") }}

{% for post in monthPosts %}

{{ post.data.title }}

{% if post.data.description %}

{{ post.data.description }}

{% endif %} {% if post.data.tags %}
{% for tag in post.data.tags %} {{ tag }} {% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %} {% if collections.posts.length == 0 %}

No posts found.

{% endif %}