Permalink
Browse files

archive should be reverse chronological.

  • Loading branch information...
1 parent 806d1fc commit 79441181935160eeb7ecf6c211c44a91e115f851 @dz committed Mar 3, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 templates/archive.html
View
@@ -5,14 +5,14 @@
{% endblock %}
{% block main %}
- {% for year, year_list in entries|groupby('year') %}
+ {% for year, year_list in entries|groupby('year')|reverse %}
<h3>{{year}}</h3>
<ul class="year_block">
- {% for month, month_list in year_list|groupby('month') %}
+ {% for month, month_list in year_list|groupby('month')|reverse %}
<li>
<h4>{{month}}</h4>
<ul class="month_block">
- {% for day, day_list in month_list|groupby('day') %}
+ {% for day, day_list in month_list|groupby('day')|reverse %}
{% for entry in day_list %}
<li><a href="/{{ entry.url }}">{{ entry.title }}</a> -- <small>{{ entry.pretty_date }}</small></li>
{% endfor %}

0 comments on commit 7944118

Please sign in to comment.