aboutsummaryrefslogtreecommitdiff
path: root/theme/bulma/templates/partial/translations.html
diff options
context:
space:
mode:
Diffstat (limited to 'theme/bulma/templates/partial/translations.html')
-rw-r--r--theme/bulma/templates/partial/translations.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/theme/bulma/templates/partial/translations.html b/theme/bulma/templates/partial/translations.html
new file mode 100644
index 0000000..9c5e4fd
--- /dev/null
+++ b/theme/bulma/templates/partial/translations.html
@@ -0,0 +1,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 %}