diff options
-rw-r--r-- | cl-theme/templates/authors.html | 5 | ||||
-rw-r--r-- | cl-theme/templates/page.html | 20 | ||||
-rw-r--r-- | cl-theme/templates/translations.html | 22 | ||||
-rw-r--r-- | content/pages/contacto.de.md | 2 | ||||
-rw-r--r-- | content/pages/contacto.en.md | 2 | ||||
-rw-r--r-- | content/pages/contacto.eo.md | 2 | ||||
-rw-r--r-- | pelicanconf.py | 8 |
7 files changed, 37 insertions, 24 deletions
diff --git a/cl-theme/templates/authors.html b/cl-theme/templates/authors.html index ab8f658..aa6c7f4 100644 --- a/cl-theme/templates/authors.html +++ b/cl-theme/templates/authors.html @@ -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> diff --git a/cl-theme/templates/page.html b/cl-theme/templates/page.html index 4170e3a..c8d5857 100644 --- a/cl-theme/templates/page.html +++ b/cl-theme/templates/page.html @@ -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> diff --git a/cl-theme/templates/translations.html b/cl-theme/templates/translations.html index 7116942..0c14653 100644 --- a/cl-theme/templates/translations.html +++ b/cl-theme/templates/translations.html @@ -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 %} diff --git a/content/pages/contacto.de.md b/content/pages/contacto.de.md index fddb9ee..dbac380 100644 --- a/content/pages/contacto.de.md +++ b/content/pages/contacto.de.md @@ -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 diff --git a/content/pages/contacto.en.md b/content/pages/contacto.en.md index fdeee70..a0840e0 100644 --- a/content/pages/contacto.en.md +++ b/content/pages/contacto.en.md @@ -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 diff --git a/content/pages/contacto.eo.md b/content/pages/contacto.eo.md index ef99c07..49f0757 100644 --- a/content/pages/contacto.eo.md +++ b/content/pages/contacto.eo.md @@ -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 diff --git a/pelicanconf.py b/pelicanconf.py index f67b232..95705bf 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -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': { |