Skip to content

Commit

Permalink
Only displaying page tags if there are any
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveBathnes committed Sep 16, 2024
1 parent 3ad4ab7 commit c677337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/components/tags.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{% if page.tags and page.tags.size > 0 %}
<h4>Page tags</h4>
<div class="metatags">
{% for child in page.tags %}
<p class="label">
<a href="{{ site.url }}{{ site.baseurl }}/tags#{{ child | slugify }}">{{ child }}</a>
</p>
{% endfor %}
</div>
</div>
{% endif %}

0 comments on commit c677337

Please sign in to comment.