hide tags used only once

This commit is contained in:
Tomáš Mládek 2021-10-06 09:14:44 +02:00
parent 7ee85e5c62
commit 0a6fcba373

View file

@ -78,11 +78,13 @@
<h2>Tags</h2>
<ul>
{% for tag_cnt in tags %}
<li class="tag">
<a href="/{{tag_cnt.0}}">
<span class="label">#{{tag_cnt.0}}</span> <span class="count">({{tag_cnt.1}})</span>
</a>
</li>
{% if tag_cnt.1 > 1 %}
<li class="tag">
<a href="/{{tag_cnt.0}}">
<span class="label">#{{tag_cnt.0}}</span> <span class="count">({{tag_cnt.1}})</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</section>