summaryrefslogtreecommitdiff
path: root/templates/taxonomy_list.html
diff options
context:
space:
mode:
authorMole Shang <135e2@135e2.dev>2026-09-02 15:49:49 +0800
committerMole Shang <135e2@135e2.dev>2026-09-02 15:49:49 +0800
commit23d62aaa39dae753d39dcd596b962ccc1c5cdb36 (patch)
tree269670883636ee9adb47a123acd69abd2d6522a0 /templates/taxonomy_list.html
parenta582b6ef76bfb79744716f5cdfafff8c41861ec9 (diff)
downloadSeje2-23d62aaa39dae753d39dcd596b962ccc1c5cdb36.tar.gz
Seje2-23d62aaa39dae753d39dcd596b962ccc1c5cdb36.tar.bz2
Seje2-23d62aaa39dae753d39dcd596b962ccc1c5cdb36.zip
templates: migrate to zola 0.23main
tera v1->v2 https://github.com/getzola/zola/issues/3235 https://github.com/Keats/tera/blob/master/MIGRATION.md
Diffstat (limited to 'templates/taxonomy_list.html')
-rw-r--r--templates/taxonomy_list.html7
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 %}