mirror of
https://gitlab.com/free_zed/free_zed.gitlab.io.git
synced 2024-07-01 17:23:02 +00:00
17 lines
565 B
HTML
17 lines
565 B
HTML
{% macro translations_for(article) %}
|
|
{% if article.translations %}
|
|
Traduction dispo :
|
|
{% for translation in article.translations %}
|
|
<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">[{{ translation.lang|capitalize }}]</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 %}
|