Support article translation

This commit is contained in:
Marc-Antoine Parent 2017-04-22 18:34:29 -04:00 committed by Alexandre Vicenzi
parent a6f12ec781
commit 1802e84241
5 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,10 @@
{% macro translations_for(article) %}
{% if article.translations %}
<div class="translations">
<span class="lang lang-current">{{article.lang}}</span>
{% for translation in article.translations %}
<a class="lang" href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</div>
{% endif %}
{% endmacro %}