diff --git a/config.toml b/config.toml index 1b2bd5e..3b55b7b 100644 --- a/config.toml +++ b/config.toml @@ -162,10 +162,10 @@ favicon_emoji = "🌱" headerImage = "" menu = [ - { name = "blog", url = "blog/" }, - { name = "archive", url = "archive/" }, - { name = "tags", url = "tags/" }, - { name = "projects", url = "projects/" }, + { name = "blog", url = "blog", trailing_slash = true }, + { name = "archive", url = "archive", trailing_slash = true }, + { name = "tags", url = "tags", trailing_slash = true }, + { name = "projects", url = "projects", trailing_slash = true }, ] # The RSS icon will be shown if (1) it's enabled and (2) the following variable is set to true. diff --git a/templates/partials/footer.html b/templates/partials/footer.html index fa97d9e..f6df6ea 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -12,7 +12,7 @@ {%- endif -%} {% for social in config.extra.socials %}
  • - + {{
  • diff --git a/templates/partials/nav.html b/templates/partials/nav.html index be1e159..4c98be9 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -10,7 +10,8 @@ {%- if config.extra.menu %} {% for menu in config.extra.menu %}
  • - + {% set trailing_slash = menu.trailing_slash | default(value=true) %} + {%- if lang != config.default_language -%} {{ trans(key=menu.name | safe, lang=lang) }} {%- else -%}