2017-09-12 14:56:24 +02:00
|
|
|
{% macro translations_for(article) %}
|
|
|
|
{% if article.translations %}
|
2019-02-13 16:49:46 +01:00
|
|
|
Translations:
|
|
|
|
{% for translation in article.translations %}
|
|
|
|
<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
|
|
|
|
{% endfor %}
|
2017-09-12 14:56:24 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
2019-02-13 16:49:46 +01:00
|
|
|
{% 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 %}
|