diff options
Diffstat (limited to 'theme/templates/translations.html')
-rw-r--r-- | theme/templates/translations.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/theme/templates/translations.html b/theme/templates/translations.html new file mode 100644 index 0000000..121ff1a --- /dev/null +++ b/theme/templates/translations.html @@ -0,0 +1,10 @@ +{% macro translations_for(article) %} +{% if article.translations %} +<details class="meta"> +Traductions : +{% for translation in article.translations %} +<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> +{% endfor %} +</details> +{% endif %} +{% endmacro %} |