translations.html 411 B

1234567891011
  1. {% macro translations_for(article) %}
  2. {% if article.translations %}
  3. <p id="list-of-translations">
  4. This post is also available in:
  5. {% for translation in article.translations|sort(attribute = 'lang') %}
  6. <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>{% if loop.index0 + 2 == loop.length %} and{% elif not loop.last %}, {% endif %}
  7. {% endfor %}
  8. </p>
  9. {% endif %}
  10. {% endmacro %}