{% extends "base.html" %} {% block content %} {% for year, year_items in index|groupby('year')|reverse() %}