From 4ce3852838266c110d12c9459e77c861c2fda352 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Sat, 27 Jun 2026 15:36:05 +0200 Subject: [PATCH] Sort tags in postcard2.html to avoid big diffs between builds Since Python randomizes set order, each commit has unnecessary differences in the order of the tag lists. This fixes it by making sure the tags are sorted the same way every time. --- src/ablog/templates/postcard2.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ablog/templates/postcard2.html b/src/ablog/templates/postcard2.html index 5dbdfb3b..36e7b188 100644 --- a/src/ablog/templates/postcard2.html +++ b/src/ablog/templates/postcard2.html @@ -71,7 +71,7 @@ {% else %} {{ gettext('Tag') }}: {% endif %}{% endif %} - {% for coll in post.tags %} {% if coll|length %} + {% for coll in post.tags|sort %} {% if coll|length %} {{ coll }} {% if loop.index < post.tags|length %} {% endif %} {% else %} {{ coll }} {% if loop.index < post.tags|length %} {% endif %} {% endif %} {% endfor %}