keep lang if pressing the logo in nav

This commit is contained in:
gws 2024-11-14 12:37:49 +01:00
parent 25fe6c34c0
commit c4e3078532

View file

@ -1,6 +1,12 @@
{% macro render_header() %}
{% set root = get_section(path="_index.md") %}
<a href="{{ root.permalink | safe }}#top">
{% if lang == "en" %}
{% set root_lang = "" %}
{% else %}
{% set root_lang = lang %}
{% endif %}
<a href="{{ root.permalink | safe }}{{root_lang}}#top">
<div class="logo">
<img src="{{ get_url(path=config.extra.juice_logo_path) }}" alt="logo">
{{ config.extra.juice_logo_name }}