traduzioni con css possibile
This commit is contained in:
parent
365f351522
commit
eaf2c476eb
1 changed files with 18 additions and 0 deletions
18
themes/maya0x17/templates/translations.html
Normal file
18
themes/maya0x17/templates/translations.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% macro translations_for(article) %}
|
||||
{% if article.translations %}
|
||||
<div class="translations-available">
|
||||
Translations:
|
||||
{% for translation in article.translations %}
|
||||
<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% 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 %}
|
Loading…
Reference in a new issue