reverse date for index of blog posts (HT tony)

This commit is contained in:
Bradley M. Kuhn 2015-03-04 14:43:37 -08:00
parent c9d97e8f0f
commit f3eeca0969

View file

@ -31,7 +31,7 @@
{% if date_list %} {% if date_list %}
<h3>Index by date</h3> <h3>Index by date</h3>
<ul> <ul>
{% for year in date_list %}<li><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %} {% for year in date_list reversed %}<li><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
</ul> </ul>
{% endif %} {% endif %}