aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3
diff options
context:
space:
mode:
authorJan Müller <jpmueller@gmx.net>2013-11-24 14:09:00 +0100
committerJan Müller <jpmueller@gmx.net>2013-11-24 14:16:09 +0100
commita766721bc56c917cba2d4e3f2d701dbf37c036f4 (patch)
treed4e1edb207be926d3b9139b17590b52e3b84cf3f /pelican-bootstrap3
parent7ef242b7580306f953756a7ea3d2632c70ef30b8 (diff)
downloadpelican-themes-a766721bc56c917cba2d4e3f2d701dbf37c036f4.zip
pelican-themes-a766721bc56c917cba2d4e3f2d701dbf37c036f4.tar.gz
pelican-themes-a766721bc56c917cba2d4e3f2d701dbf37c036f4.tar.bz2
made article tag separator configurable via TAG_LIST_SEPARATOR
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r--pelican-bootstrap3/README.md6
-rw-r--r--pelican-bootstrap3/templates/includes/taglist.html16
2 files changed, 15 insertions, 7 deletions
diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md
index 4d19ca4..c7bc83c 100644
--- a/pelican-bootstrap3/README.md
+++ b/pelican-bootstrap3/README.md
@@ -53,6 +53,10 @@ You can enable sharing buttons through [AddThis](http://www.addthis.com/) by set
In order to make the Facebook like button work better, the template contains Open Graph metatags like `<meta property="og:type" content="article"/>`. You can disable them by setting `USE_OPEN_GRAPH` to `False`. You can use `OPEN_GRAPH_FB_APP_ID` to provide a Facebook _app id_. You can also provide a default image that will be passed to Facebook for the homepage of you site by setting `OPEN_GRAPH_IMAGE` to a relative file path, which will be prefixed by your site's static directory.
+### Tag List
+
+You can customize the separator between article tags with `TAG_LIST_SEPARATOR`. The default separator is `/`.
+
## Screenshot
![](screenshot.png)
@@ -61,4 +65,4 @@ In order to make the Facebook like button work better, the template contains Ope
## Live example
-[This is my website](http://dandydev.net) \ No newline at end of file
+[This is my website](http://dandydev.net)
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 %}