diff options
Diffstat (limited to 'templates/archives.html')
| -rw-r--r-- | templates/archives.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/archives.html b/templates/archives.html index e691c86..79feb9d 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -5,11 +5,8 @@ <ul class="post-archive"> {# Group the posts by year #} {% set map = get_section(path="_index.md") | get(key="pages") | group_by(attribute="year") %} - {% set_global years = [] %} {# Convert the years map to an array (since maps do not have determined order) #} - {% for year, ignored in map %} - {% set_global years = years | concat(with=year) %} - {% endfor %} + {% set_global years = [year for year, ignored in map] %} {% for year in years | sort | reverse %} <div class="years"> |
