refactor: migrer les partials vers le contenu localisé
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<nav>
|
||||
<div class="nav-container">
|
||||
<a href="/" class="logo">
|
||||
<img src="/assets/images/logo-512x512.png" alt="{{ site.shortName }} Logo" class="logo-image">
|
||||
<span>{{ site.shortName }}</span>
|
||||
<img src="/assets/images/logo-512x512.png" alt="{{ t.site.shortName }} Logo" class="logo-image">
|
||||
<span>{{ t.site.shortName }}</span>
|
||||
</a>
|
||||
<ul class="nav-links">
|
||||
{% for item in navigation %}
|
||||
{% for item in t.navigation %}
|
||||
<li>
|
||||
<a href="{{ item.url }}"{% if item.external %} target="_blank"{% endif %}>
|
||||
{{ item.text }}
|
||||
@@ -13,7 +13,12 @@
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<button id="theme-toggle" class="theme-toggle" aria-label="Changer de thème" title="Changer de thème">
|
||||
{% if locale == 'en' %}
|
||||
<a href="/" class="lang-switch" onclick="localStorage.setItem('oki-lang-pref','fr')">{{ t.ui.lang_switch_label }}</a>
|
||||
{% else %}
|
||||
<a href="/en/" class="lang-switch" onclick="localStorage.setItem('oki-lang-pref','en')">{{ t.ui.lang_switch_label }}</a>
|
||||
{% endif %}
|
||||
<button id="theme-toggle" class="theme-toggle" aria-label="{{ t.ui.theme_toggle }}" title="{{ t.ui.theme_toggle }}">
|
||||
<span class="theme-icon theme-icon-dark">🌙</span>
|
||||
<span class="theme-icon theme-icon-light">☀️</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user