2023-11-07 23:19:50 +00:00
|
|
|
{% set current_lang = config.default_language %}
|
|
|
|
{% if page %}
|
|
|
|
{% set current_lang = page.lang %}
|
|
|
|
{% elif section %}
|
|
|
|
{% set current_lang = section.lang %}
|
|
|
|
{% endif %}
|
2023-09-09 18:20:39 +01:00
|
|
|
{% if config.extra.header_nav %}
|
2024-02-29 03:22:04 +00:00
|
|
|
<nav id="nav-bar">
|
2023-11-07 23:19:50 +00:00
|
|
|
{% for nav_item in config.extra.header_nav %}
|
|
|
|
<a href="{{ nav_item.url }}" class="{% if nav_item.url == current_url %}active{% endif %}">
|
|
|
|
{% set language_key = 'name_' ~ current_lang %}
|
|
|
|
{{ nav_item[language_key] }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2024-02-29 03:22:04 +00:00
|
|
|
<div>
|
|
|
|
<input type="checkbox" id="theme-toggle" style="display: none;">
|
|
|
|
<label for="theme-toggle" id="theme-toggle-label"><svg id="theme-icon" class="icons"><use href="{{ get_url(path='/icons.svg#lightMode', trailing_slash=false) | safe }}"></use></svg></label>
|
|
|
|
<audio id="theme-sound">
|
2024-03-01 22:46:37 +00:00
|
|
|
<source src="{{ get_url(path='click.ogg', trailing_slash=false) | safe }}" type="audio/ogg">
|
2024-02-29 03:22:04 +00:00
|
|
|
</audio>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2023-09-09 18:20:39 +01:00
|
|
|
{% endif %}
|