{#- holocron/theme/templates/document-list.html ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Template for rendering Holocron index pages. :copyright: (c) 2014 by the Holocron Team, see AUTHORS for details. :license: 3-clause BSD, see LICENSE for details. -#} {% extends "base.html" %} {% block content %} {#- Prints all posts grouped by year. -#}
{% for group in posts|groupby('published.year')|sort(attribute='grouper', reverse=True) %} {{ group.grouper }} {% for post in group.list|sort(attribute='published', reverse=True) %}
{{ post.title }}
{% endfor %} {% endfor %}
{% endblock %}