mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-26 02:16:07 +08:00
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:
@@ -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">→</span></td>
|
<td class="col-arrow"><span class="arrow">→</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user