fix(template): show group tag before built-in source tag

Reorder tag buttons so the group tag appears before the source type tag,
giving it higher visual priority in the entry row.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-22 15:10:40 +08:00
parent ec2928b510
commit 73f77039f2
+9 -8
View File
@@ -178,7 +178,15 @@
<button class="tag" data-type="cat" data-value="{{ cat }}"> <button class="tag" data-type="cat" data-value="{{ cat }}">
{{ cat }} {{ cat }}
</button> </button>
{% endfor %} {% if entry.source_type == 'Built-in' %} {% endfor %}
<button
class="tag tag-group"
data-type="group"
data-value="{{ entry.groups[0] }}"
>
{{ entry.groups[0] }}
</button>
{% if entry.source_type == 'Built-in' %}
<button <button
class="tag tag-source" class="tag tag-source"
data-type="cat" data-type="cat"
@@ -187,13 +195,6 @@
Built-in Built-in
</button> </button>
{% endif %} {% endif %}
<button
class="tag tag-group"
data-type="group"
data-value="{{ entry.groups[0] }}"
>
{{ entry.groups[0] }}
</button>
</td> </td>
<td class="col-arrow"><span class="arrow">&rarr;</span></td> <td class="col-arrow"><span class="arrow">&rarr;</span></td>
</tr> </tr>