about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-01-30 18:39:51 +0000
committerAlan Pearce2024-01-30 18:39:51 +0000
commit0347efbadcfe627acd25dd5138d295773c7e5594 (patch)
tree7405d44166f372f795420821802fb64228e3932e /templates
parentd10630da50a2b0e005ef0499190cc5cc898f0b06 (diff)
parentf9a560a45d98436c270db6f226f26ccde5dd8844 (diff)
downloadzola-bearblog-0347efbadcfe627acd25dd5138d295773c7e5594.tar.lz
zola-bearblog-0347efbadcfe627acd25dd5138d295773c7e5594.tar.zst
zola-bearblog-0347efbadcfe627acd25dd5138d295773c7e5594.zip
Merge pull request 'Use the localised version of get_url so multilingual sites can be setup' (#2) from g4m4/zola-bearblog:multilingual_fixes into main
Reviewed-on: https://codeberg.org/alanpearce/zola-bearblog/pulls/2
Diffstat (limited to 'templates')
-rw-r--r--templates/nav.html2
-rw-r--r--templates/section.html2
-rw-r--r--templates/taxonomy_single.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/nav.html b/templates/nav.html
index e006ab1..e18fda2 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -4,7 +4,7 @@
     {%- if item.url is matching("https?://") %}
       <a href="{{ item.url }}">{{ item.name }}</a>
     {%- else %}
-      <a href="{{ get_url(path=item.url )}}">{{ item.name }}</a>
+      <a href="{{ get_url(path=item.url, lang=lang )}}">{{ item.name }}</a>
     {%- endif %}
   {%- endfor %}
 {%- endif -%}
diff --git a/templates/section.html b/templates/section.html
index e596ffb..b9eb680 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -5,7 +5,7 @@
     {%- if taxonomy.term %}
       <h3 style="margin-bottom:0">Filtering for "{{ section.title }}"</h3>
       <small>
-        <a href="{{ get_url(path="@/blog/_index.md") }}">Remove filter</a>
+        <a href="{{ get_url(path="@/blog/_index.md", lang=lang) }}">Remove filter</a>
       </small>
     {%- endif %}
     <ul class="blog-posts">
diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html
index d5712b0..be0f2ad 100644
--- a/templates/taxonomy_single.html
+++ b/templates/taxonomy_single.html
@@ -5,7 +5,7 @@
     {%- if taxonomy.term %}
       <h3 style="margin-bottom:0">Filtering for "{{ term.name }}"</h3>
       <small>
-        <a href="{{ get_url(path="@/blog/_index.md") }}">Remove filter</a>
+        <a href="{{ get_url(path="@/blog/_index.md", lang=lang) }}">Remove filter</a>
       </small>
     {%- endif %}
     <ul class="blog-posts">