Dont show 'empty' tag, it will be in the [ALL] list

This commit is contained in:
Leigh Morresi
2021-03-01 15:44:34 +01:00
parent c5c3e8c6c2
commit 982a0d7781
+3 -1
View File
@@ -17,7 +17,9 @@
<div>
<a href="/" class="pure-button button-tag {{'active' if not active_tag }}">All</a>
{% for tag in tags %}
<a href="/?tag={{ tag}}" class="pure-button button-tag {{'active' if active_tag == tag }}">{{ tag }}</a>
{% if tag != "" %}
<a href="/?tag={{ tag}}" class="pure-button button-tag {{'active' if active_tag == tag }}">{{ tag }}</a>
{% endif %}
{% endfor %}
</div>