diff --git a/libretube-theme/templates/translations.html b/libretube-theme/templates/translations.html new file mode 100644 index 0000000..e8d2665 --- /dev/null +++ b/libretube-theme/templates/translations.html @@ -0,0 +1,16 @@ +{% macro translations_for(article) %} + {% if article.translations %} + {{ _('Traducciones:') }} + {% for translation in article.translations %} + {{ LANGUAGE_CODES[translation.lang] }}{% if not loop.last %},{% endif %} + {% endfor %} + {% endif %} +{% endmacro %} + +{% macro entry_hreflang(entry) %} + {% if entry.translations %} + {% for translation in entry.translations %} + + {% endfor %} + {% endif %} +{% endmacro %}