{% for caption, url in date_hierarchy.back_urls %} {{ caption }} {% endfor %} {% if date_hierarchy.choice_urls %} {% for caption, url in date_hierarchy.choice_urls %} {{ caption }} {% endfor %} {% endif %}