diff options
author | Justin Mayer <entroP@gmail.com> | 2013-12-10 15:47:37 -0800 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2013-12-10 15:47:37 -0800 |
commit | fafcb745cc525885a575ca5f49e2b32c0ce78369 (patch) | |
tree | d285485f746ce38cabb016b31e15d69c7513675d /pelican-bootstrap3/templates/includes | |
parent | 8c84056ac6216eb02f440c53977d03b8cde609d9 (diff) | |
parent | a766721bc56c917cba2d4e3f2d701dbf37c036f4 (diff) | |
download | pelican-themes-fafcb745cc525885a575ca5f49e2b32c0ce78369.tar.gz |
Merge pull request #175 from nikipore/pelican-bootstrap3-taglist-separator
made article tag separator configurable via TAG_LIST_SEPARATOR
Diffstat (limited to 'pelican-bootstrap3/templates/includes')
-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 %} |