Browse Source

Sort months in reverse order

We had years descending (2018 -> 2017 -> 2016 ...) but months ascending
(February -> March -> April) which looked weird in the archives. Now,
instead of:

* 2018
  * February
  * March
* 2017
  * July
  * December

We have:

* 2018
  * March
  * February
* 2017
  * December
  * July

e.g., correct reverse chronological order.
pull/1/head
Annika Backstrom 1 year ago
parent
commit
7614125ba5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      themes/histrionic/templates/index.html

+ 1
- 1
themes/histrionic/templates/index.html View File

@@ -11,7 +11,7 @@
{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
<h2>{{ year }}</h2>
<div class="archive-year">
{% for month, articles in date_year|groupby('date.month') %}
{% for month, articles in date_year|groupby('date.month')|sort(reverse=True) %}
<h3>{{month|num2month}}</h3>
<ol>
{% for article in articles %}

Loading…
Cancel
Save