aboutsummaryrefslogtreecommitdiff
path: root/theme/bulma/templates/partial/translations.html
blob: 9c5e4fd75fa302e4f0b302aca0a02654338836b8 (plain)
1
2
3
4
5
6
7
8
9
10
{% 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 %}