flex/pelican/themes/Flex/templates/partial/translations.html

10 lines
375 B
HTML

{% 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 %}