{% macro translations_for(article) %} {% if article.translations %} <div id="translation"> {% for translation in article.translations %} → <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> {% endfor %} </div> {% endif %} {% endmacro %}