diff options
author | Jan Müller <jpmueller@gmx.net> | 2013-11-24 14:09:00 +0100 |
---|---|---|
committer | Jan Müller <jpmueller@gmx.net> | 2013-11-24 14:16:09 +0100 |
commit | a766721bc56c917cba2d4e3f2d701dbf37c036f4 (patch) | |
tree | d4e1edb207be926d3b9139b17590b52e3b84cf3f /pelican-bootstrap3/templates | |
parent | 7ef242b7580306f953756a7ea3d2632c70ef30b8 (diff) | |
download | pelican-themes-a766721bc56c917cba2d4e3f2d701dbf37c036f4.tar.gz |
made article tag separator configurable via TAG_LIST_SEPARATOR
Diffstat (limited to 'pelican-bootstrap3/templates')
-rw-r--r-- | pelican-bootstrap3/templates/includes/taglist.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pelican-bootstrap3/templates/includes/taglist.html b/pelican-bootstrap3/templates/includes/taglist.html index bcaa470..f71ddcd 100644 --- a/pelican-bootstrap3/templates/includes/taglist.html +++ b/pelican-bootstrap3/templates/includes/taglist.html @@ -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 %} |