reverse date for index of blog posts (HT tony)
This commit is contained in:
parent
c9d97e8f0f
commit
f3eeca0969
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
{% if date_list %}
|
||||
<h3>Index by date</h3>
|
||||
<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>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue