pelican-theme-bootstrap4/templates/includes/translations.html

9 lines
285 B
HTML
Raw Normal View History

2019-04-19 18:30:55 +00: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 %}