{% extends 'base.html' %} {% block title %} 归档 {% endblock %} {% block content %}

{% for posts in years %}

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

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