website-pelican/themes/2017/templates/translations.html

11 lines
264 B
HTML
Raw Normal View History

2020-10-20 22:47:41 +02:00
{% macro translations_for(article) %}
{% if article.translations %}
<br>
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}