Varia's website
https://varia.zone
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
530 B
17 lines
530 B
1 week ago
|
{% macro translations_for(article) %}
|
||
|
{% if article.translations %}
|
||
|
Translations:
|
||
|
{% 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 %}
|