{% for posts in years %}

{{posts[0].date.year}}

    {% for post in posts %}
  1. {{post.title}}
  2. {% endfor %}
{% endfor %}