option for tags

This commit is contained in:
Pete 2016-07-27 16:46:42 -05:00
parent b90c1c8de9
commit ce8ece5fc2
4 changed files with 13 additions and 3 deletions

View file

@ -31,9 +31,13 @@ show-avatar: false
<div class="blog-tags">
Tags:
{% if site.show-tags %}
{% for tag in post.tags %}
<a href="/tag/{{ tag }}">{{ tag }}</a>
<a href="/tag/{{ tag }}">{{ tag }}</a>
{% endfor %}
{% else %}
{{ post.tags | join: ", " }}
{% endif %}
</div>
</article>
{% endif %}