improved contacto page

This commit is contained in:
Jesús 2020-05-06 19:18:28 -05:00
parent d1e1ab2f67
commit d3b92789dc
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
7 changed files with 37 additions and 24 deletions

View File

@ -113,13 +113,12 @@
</a>
</div>
<!-- post footer nav -->
<div class="columns">
<footer class="columns">
<div class="column has-text-left">
<a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a>
</div>
</div>
</footer>
<!-- end of post footer nav -->
</div>
<!-- end of post footer -->
</div>

View File

@ -98,19 +98,19 @@
<div class="column has-text-left">
<a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a>
</div>
<div class="column has-text-right">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#translate" />
</svg>
</span>
{% import 'translations.html' as translations with context %}
{% if translations.translations_for(page) %}
{% import 'translations.html' as translations with context %}
{% if translations.translations_for(page) %}
<div class="column has-text-right">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#translate" />
</svg>
</span>
<small>
{{ translations.translations_for(page) }}
</small>
{% endif %}
</div>
</div>
{% endif %}
</footer>
<!-- end of post footer nav -->
</div>

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 %}

View File

@ -2,6 +2,8 @@ Author: Jesús E.
Date: 2019-02-04 07:52
Lang: de
Modified: 2019-02-04 07:55
Save_as: pages/kontakt.html
URL: pages/kontakt.html
Slug: contacto
Status: published
Title: Kontakt

View File

@ -2,6 +2,8 @@ Author: Jesús E.
Date: 2019-02-04 07:51
Lang: en
Modified: 2019-02-04 07:52
Save_as: pages/contact.html
URL: pages/contact.html
Slug: contacto
Status: published
Title: Contact

View File

@ -1,6 +1,8 @@
Author: Jesús E.
Date: 2019-02-04 07:36
Lang: eo
Save_as: pages/kontakto.html
URL: pages/kontakto.html
Slug: contacto
Status: published
Title: Kontakto

View File

@ -163,6 +163,8 @@ I18N_UNTRANSLATED_PAGES = 'remove'
I18N_SUBSITES = {
'de': {
'LOCALE': ('de_DE.UTF-8'),
'AUTHORS_URL': ('pages/autoren/'),
'AUTHORS_SAVE_AS': ('pages/autoren/index.html'),
'MARKDOWN': {
'extension_configs': {
'markdown.extensions.toc': {
@ -181,6 +183,8 @@ I18N_SUBSITES = {
},
'en': {
'LOCALE': ('en_US.UTF-8'),
'AUTHORS_URL': ('pages/authors/'),
'AUTHORS_SAVE_AS': ('pages/authors/index.html'),
'MARKDOWN': {
'extension_configs': {
'markdown.extensions.toc': {
@ -199,6 +203,8 @@ I18N_SUBSITES = {
},
'eo': {
'LOCALE': ('eo.UTF-8'),
'AUTHORS_URL': ('pages/aŭtoroj/'),
'AUTHORS_SAVE_AS': ('pages/aŭtoroj/index.html'),
'MARKDOWN': {
'extension_configs': {
'markdown.extensions.toc': {
@ -217,6 +223,8 @@ I18N_SUBSITES = {
},
'fr': {
'LOCALE': ('fr_FR.UTF-8'),
'AUTHORS_URL': ('pages/auteurs/'),
'AUTHORS_SAVE_AS': ('pages/auteurs/index.html'),
'MARKDOWN': {
'extension_configs': {
'markdown.extensions.toc': {