fix missing translation.html file

This commit is contained in:
Jesús
2019-11-15 18:28:59 -05:00
parent 8221736777
commit 3c2c82ac6c
3 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
{% macro translations_for(article) %}
{% if article.translations %}
{{ _('Traducciones:') }}
{% 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 %}