{% extends "base.html" %}
{% block content %}
{% for year, posts in section.pages | group_by(attribute="year") %}
<h2>{{ year }}</h2>
<ul>
{% for post in posts %}
  <li><a href="{{ post.permalink | safe }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endblock %}