diff options
Diffstat (limited to 'templates/taxonomy_list.html')
| -rw-r--r-- | templates/taxonomy_list.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html index 222711c..4aad956 100644 --- a/templates/taxonomy_list.html +++ b/templates/taxonomy_list.html @@ -6,11 +6,8 @@ <ul class="post-archive"> {# Group the posts by year #} {% set map = term.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] %} <div class="term-name"><a href="{{ term.permalink }}" class="term-name">#{{ term.name }}</a></div> @@ -29,4 +26,4 @@ </ul> {% endfor %} </section> -{% endblock %}
\ No newline at end of file +{% endblock %} |
