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 @@ -
+
+ - 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 @@
{{ _('Regresar al Inicio') }}
-
- - - - - - {% import 'translations.html' as translations with context %} - {% if translations.translations_for(page) %} + {% import 'translations.html' as translations with context %} + {% if translations.translations_for(page) %} +
+ + + + + {{ translations.translations_for(page) }} - {% endif %} -
+
+ {% endif %} 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 %} - {{ translation.lang }} - {% endfor %} -{% endif %} + {% if article.translations %} + {{ _('Traducciones:') }} + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} + {% endif %} {% endmacro %} {% macro entry_hreflang(entry) %} -{% if entry.translations %} - {% for translation in entry.translations %} - - {% endfor %} -{% endif %} + {% if entry.translations %} + {% for translation in entry.translations %} + + {% 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': {