{% extends "section.html" %}
{% import "post_macros.html" as page_macros %}
{% import "paginate.html" as paginate_macro %}
{% block content %}
{% set section = get_section(path="posts/_index.md") %}
{% for year, posts in section.pages
| sort(attribute="date")
| reverse
| group_by(attribute="year") %}
{{ year }}
{% for post in posts %}
-
{{ post.title }}
{% endfor %}
{% endfor %}
{% if paginator %}{{ paginate_macro::paginate() }}{% endif %}
{% include "footer.html" %}
{% endblock content %}