diff options
author | g4m4 | 2024-01-29 09:45:17 +0100 |
---|---|---|
committer | g4m4 | 2024-01-29 09:45:17 +0100 |
commit | f9a560a45d98436c270db6f226f26ccde5dd8844 (patch) | |
tree | 7405d44166f372f795420821802fb64228e3932e /templates | |
parent | d10630da50a2b0e005ef0499190cc5cc898f0b06 (diff) | |
download | zola-bearblog-f9a560a45d98436c270db6f226f26ccde5dd8844.tar.lz zola-bearblog-f9a560a45d98436c270db6f226f26ccde5dd8844.tar.zst zola-bearblog-f9a560a45d98436c270db6f226f26ccde5dd8844.zip |
[TEMPLATES] Use the localised version of get_url so multilingual sites can be setup
Diffstat (limited to 'templates')
-rw-r--r-- | templates/nav.html | 2 | ||||
-rw-r--r-- | templates/section.html | 2 | ||||
-rw-r--r-- | templates/taxonomy_single.html | 2 |
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"> |