all repos — zola-bearblog @ f9a560a45d98436c270db6f226f26ccde5dd8844

Port of bear blog theme to zola

[TEMPLATES] Use the localised version of get_url so multilingual sites can be setup

g4m4
commit

f9a560a45d98436c270db6f226f26ccde5dd8844

parent

d10630da50a2b0e005ef0499190cc5cc898f0b06

3 files changed, 3 insertions(+), 3 deletions(-)

jump to
M templates/nav.htmltemplates/nav.html
@@ -4,7 +4,7 @@ {%- for item in config.extra.main_menu %}
{%- 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 -%}
M templates/section.htmltemplates/section.html
@@ -5,7 +5,7 @@ <main>
{%- 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">
M templates/taxonomy_single.htmltemplates/taxonomy_single.html
@@ -5,7 +5,7 @@ <main>
{%- 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">