site_opytex/theme/templates/partial/translations.html

11 lines
375 B
HTML
Raw Normal View History

2019-07-18 10:43:36 +00:00
{% macro translations_for(article) %}
{% if article.translations %}
<div class="translations">
<a class="active" href="{{ SITEURL }}/{{ article.url }}">{{article.lang}}</a>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</div>
{% endif %}
{% endmacro %}