aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/translations.html
diff options
context:
space:
mode:
Diffstat (limited to 'pelican-bootstrap3/templates/includes/translations.html')
-rw-r--r--pelican-bootstrap3/templates/includes/translations.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/translations.html b/pelican-bootstrap3/templates/includes/translations.html
index 65c5684..ea693df 100644
--- a/pelican-bootstrap3/templates/includes/translations.html
+++ b/pelican-bootstrap3/templates/includes/translations.html
@@ -1,6 +1,8 @@
+{% macro translations_for(article) %}
{% if article.translations %}
<span class="label label-default">Lang</span>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
+{% endmacro %} \ No newline at end of file