all repos — zola-bearblog @ 0347efbadcfe627acd25dd5138d295773c7e5594

Port of bear blog theme to zola

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

Alan Pearce
commit

0347efbadcfe627acd25dd5138d295773c7e5594

parent

d10630da50a2b0e005ef0499190cc5cc898f0b06

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
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 -%}