Merge pull request #175 from nikipore/pelican-bootstrap3-taglist-separator

made article tag separator configurable via TAG_LIST_SEPARATOR
This commit is contained in:
Justin Mayer
2013-12-10 15:47:37 -08:00
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 %}