From a766721bc56c917cba2d4e3f2d701dbf37c036f4 Mon Sep 17 00:00:00 2001 From: Jan Mùˆller Date: Sun, 24 Nov 2013 14:09:00 +0100 Subject: made article tag separator configurable via TAG_LIST_SEPARATOR --- pelican-bootstrap3/templates/includes/taglist.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'pelican-bootstrap3/templates') 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 %} -Tags -{% for tag in article.tags %} - {{ tag }} - {% if not loop.last %} - / + {% if TAG_LIST_SEPARATOR is not defined %} + {% set TAG_LIST_SEPARATOR = "/" %} {% endif %} -{% endfor %} + + Tags + {% for tag in article.tags %} + {{ tag }} + {% if not loop.last %} + {{ TAG_LIST_SEPARATOR }} + {% endif %} + {% endfor %} {% endif %} -- cgit