From 30faaf2a9dfef3ce07d6421d1cbe7da60a94f4f5 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Sun, 2 Mar 2025 09:51:15 +1100 Subject: [PATCH] Update tag style --- links/templates/links/tag_list.html | 106 ++++++++++++++-------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/links/templates/links/tag_list.html b/links/templates/links/tag_list.html index 58cb893..b3ad8f9 100644 --- a/links/templates/links/tag_list.html +++ b/links/templates/links/tag_list.html @@ -13,35 +13,47 @@
{% for tag in tags %} -
+
{% with icon_classes="w-8 h-8 mx-auto" %} {% if forloop.counter|divisibleby:5 %} - - + + {% elif forloop.counter|divisibleby:4 %} - - + + {% elif forloop.counter|divisibleby:3 %} - - + + {% elif forloop.counter|divisibleby:2 %} - - + + {% else %} - - + + {% endif %} {% endwith %}

{{ tag.name }}

- + {{ tag.total_count }} {% trans "uses" %}
@@ -58,13 +70,15 @@
-{% endblock %} +{% endblock %} \ No newline at end of file