diff --git a/config.toml b/config.toml index a3cda97..e8a1cda 100644 --- a/config.toml +++ b/config.toml @@ -21,6 +21,7 @@ default_language = "en" title = "~/tabi" description = "tabi es un tema de Zola rápido, liviano y moderno con JavaScript opcional y una puntuación perfecta en Lighthouse." generate_feed = true +# If you're using feeds, you might want to create/translate the static/feed_style/{lang}.xsl file. compile_sass = true minify_html = true @@ -32,6 +33,7 @@ taxonomies = [ title = "~/tabi" description = "tabi és un tema de Zola ràpid, lleuger i modern amb JavaScript opcional i una puntuació perfecta a Lighthouse." generate_feed = true +# If you're using feeds, you might want to create/translate the static/feed_style/{lang}.xsl file. compile_sass = true minify_html = true diff --git a/static/feed_style/ca.xsl b/static/feed_style/ca.xsl new file mode 100644 index 0000000..3e34693 --- /dev/null +++ b/static/feed_style/ca.xsl @@ -0,0 +1,71 @@ + + + + + + + + <xsl:value-of select="/atom:feed/atom:title"/> • Canal Atom + + + + + + + +
+
+
+ Aquest és un canal web, també conegut com a canal Atom. Subscriu-te copiant l'URL de la barra d'adreces al teu lector de notícies. Visita Sobre Feeds (en anglès) per aprendre més i començar. És gratuït. +
+ + +
+

Publicacions recents

+
+
+ +
+
+ +
+
+ +
+ +
+ + + + + +
+
+
+
+
+
+ + +
+
diff --git a/static/feed_style.xsl b/static/feed_style/en.xsl similarity index 98% rename from static/feed_style.xsl rename to static/feed_style/en.xsl index c47a1ff..ab9c9a0 100644 --- a/static/feed_style.xsl +++ b/static/feed_style/en.xsl @@ -11,7 +11,7 @@ - +
diff --git a/static/feed_style/es.xsl b/static/feed_style/es.xsl new file mode 100644 index 0000000..def91c0 --- /dev/null +++ b/static/feed_style/es.xsl @@ -0,0 +1,71 @@ + + + + + + + + <xsl:value-of select="/atom:feed/atom:title"/> • Canal Atom + + + + + + + +
+
+
+ Esta es una fuente web, también conocida como fuente Atom. Suscríbete copiando la URL de la barra de direcciones en tu lector de noticias. Visita Acerca de Feeds (en inglés) para aprender más y empezar. Es gratis. +
+ + +
+

Publicaciones recientes

+
+
+ +
+
+ +
+
+ +
+ +
+ + + + + +
+
+
+
+
+
+ + +
+
diff --git a/templates/atom.xml b/templates/atom.xml index 2e22cd8..91c8efa 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -1,5 +1,7 @@ - + + + {{ config.title }} {%- if term %} - {{ term.name }} diff --git a/templates/partials/nav.html b/templates/partials/nav.html index 10295e7..be1e159 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -43,7 +43,7 @@ {# Check if the language code matches the default language #} {%- if lcode == config.default_language -%} {# If it does, link to the root path (no language code in URL) #} - <a type="Button" href="{{ current_url | replace(from=current_path | default(value="") | truncate(length=4, end=""), to="/") }}">{{ language_name }}</a> + <a type="Button" href="{{ current_url | replace(from='/' ~ lang ~ '/', to = '/') }}">{{ language_name }}</a> {%- else -%} {# Check if the current language is the default language #} {%- if lang == config.default_language -%}