19 lines
635 B
HTML
19 lines
635 B
HTML
{% macro translations_for(article) %}
|
|
{% if article.translations %}
|
|
<span class="translations-footer pr-1">
|
|
{% trans %}Translations{% endtrans %}:
|
|
</span>
|
|
{% for translation in article.translations %}
|
|
<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro entry_hreflang(entry) %}
|
|
{% if entry.translations %}
|
|
{% for translation in entry.translations %}
|
|
<link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}">
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endmacro %}
|