first version of the new website
[markerbeacon.git] / themes / markerbeacon / templates / translations.html
1 {% macro translations_for(article) %}
2 {% if article.translations %}
3 Translations:
4     {% for translation in article.translations %}
5         <a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
6     {% endfor %}
7 {% endif %}
8 {% endmacro %}
9
10 {% macro entry_hreflang(entry) %}
11 {% if entry.translations %}
12   {% for translation in entry.translations %}
13     <link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}">
14   {% endfor %}
15 {% endif %}
16 {% endmacro %}