about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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?://") %}