about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-02-18 20:38:47 +0100
committerAlan Pearce2024-02-18 20:40:21 +0100
commitcfe243132912e9a21e7de990836380f4356ba92d (patch)
tree73351f87f08e36f2d9b98588e8d16a1e778b760a /templates
parent62014d65b9693908189fd7c73a5dc1062113a72c (diff)
downloadzola-bearblog-cfe243132912e9a21e7de990836380f4356ba92d.tar.lz
zola-bearblog-cfe243132912e9a21e7de990836380f4356ba92d.tar.zst
zola-bearblog-cfe243132912e9a21e7de990836380f4356ba92d.zip
Fix nav with default language
Diffstat (limited to 'templates')
-rw-r--r--templates/nav.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/nav.html b/templates/nav.html
index ac3f44e..ba9f543 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -6,10 +6,10 @@
 {% endif %}
 {%- if config.extra.main_menu %}
   {%- for item in config.extra.main_menu %}
-    {% set language_key = 'name_' ~ current_lang %}
     {% if current_lang == config.default_language %}
-      {% set title = item | get(key=language_key, default=item.name) %}
+      {% set title = item.name %}
     {% else %}
+      {% set language_key = 'name_' ~ current_lang %}
       {% set title = item[language_key] %}
     {% endif %}
     {%- if item.url is matching("https?://") %}