2022-02-21 10:18:57 +01:00
|
|
|
{% macro translations_for(article) %}
|
|
|
|
{% if article.translations %}
|
2024-08-15 04:22:14 +02:00
|
|
|
<span class="translations-footer pr-1">
|
|
|
|
{% trans %}Translations{% endtrans %}:
|
|
|
|
</span>
|
2022-02-21 10:18:57 +01:00
|
|
|
{% 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 %}
|
2024-08-15 04:22:14 +02:00
|
|
|
{% endmacro %}
|