{% set title = "All photos" %} {% set subtitle = "By date, descending" %} {% include "page-top.html" %} {% set locals = namespace() %}
{% set locals.year = "" %} {% set locals.month = "" %} {% for item, date, count, _, _, _ in images %} {% if item.date.year != locals.year %} {% set locals.year = item.date.year %}

{{ item.date.year }}

{% endif %} {% if item.date.month != locals.month %} {% set locals.month = item.date.month %}

{{ item.date.strftime("%B") }}

{% endif %} {{ date }} ({{ count }}) {% endfor %}
{% include "page-bottom.html" %}