improved contacto page

This commit is contained in:
Jesús
2020-05-06 19:18:28 -05:00
parent d1e1ab2f67
commit d3b92789dc
7 changed files with 37 additions and 24 deletions

View File

@@ -1,16 +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 %}
{% 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 %}
{% if entry.translations %}
{% for translation in entry.translations %}
<link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}"/>
{% endfor %}
{% endif %}
{% endmacro %}