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 %}
|
{% 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 %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue