made article tag separator configurable via TAG_LIST_SEPARATOR

This commit is contained in:
Jan Müller
2013-11-24 14:09:00 +01:00
parent 7ef242b758
commit a766721bc5
2 changed files with 15 additions and 7 deletions

View File

@@ -1,9 +1,13 @@
{% if article.tags %}
<span class="label label-default">Tags</span>
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% if not loop.last %}
/
{% if TAG_LIST_SEPARATOR is not defined %}
{% set TAG_LIST_SEPARATOR = "/" %}
{% endif %}
{% endfor %}
<span class="label label-default">Tags</span>
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% if not loop.last %}
{{ TAG_LIST_SEPARATOR }}
{% endif %}
{% endfor %}
{% endif %}