Only show tags if they exist.
parent
b1b7779309
commit
8d9bdff1e2
|
@ -47,6 +47,7 @@
|
|||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% if snipt.tags.all %}
|
||||
<section class="tags">
|
||||
<h2>{{ snipt.tags.all|length }} tag{{ snipt.tags.all|pluralize }}</h2>
|
||||
<ul>
|
||||
|
@ -61,6 +62,7 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
</aside>
|
||||
</div>
|
||||
<footer>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{% if tags %}
|
||||
<section class="tags">
|
||||
<h1>{{ user.username }}'s tags</h1>
|
||||
<ul>
|
||||
|
@ -8,3 +9,4 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue