sitolost/pelican-themes/pelican-bootstrap3bis/templates/includes/translations.html

9 lines
285 B
HTML
Raw Permalink Normal View History

2019-10-23 14:37:16 +02:00
{% 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 %}