From 2a9dd406eca68652cd57eb040c0adf69da67a68e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 26 Jun 2026 17:19:19 +0200 Subject: fix: external Projects menu item shows localized label not raw name External menu items render .Name literally (bypass i18n), so set the display string per-language in hugo.toml. Drop now-orphan gitrepo i18n key. Co-Authored-By: Claude Opus 4.8 --- hugo.toml | 4 ++-- i18n/en.yaml | 1 - i18n/it.yaml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hugo.toml b/hugo.toml index fc3a89e..ad04ecb 100644 --- a/hugo.toml +++ b/hugo.toml @@ -77,7 +77,7 @@ enableEmoji = true [[languages.it.menus.main]] identifier = "gitrepo" url = "https://git.danix.xyz/" - name = "gitrepo" + name = "Progetti" weight = 4 [languages.it.menus.main.params] external = true @@ -131,7 +131,7 @@ enableEmoji = true [[languages.en.menus.main]] identifier = "gitrepo" url = "https://git.danix.xyz/" - name = "gitrepo" + name = "Projects" weight = 4 [languages.en.menus.main.params] external = true diff --git a/i18n/en.yaml b/i18n/en.yaml index 7e9e935..658c962 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -5,7 +5,6 @@ home: "Home" articles: "Articles" about: "About" here: "Contact" -gitrepo: "Projects" repo: "Packages" legal: "Privacy" language: "Language" diff --git a/i18n/it.yaml b/i18n/it.yaml index dd925ad..402203a 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -5,7 +5,6 @@ home: "Home" articles: "Articoli" about: "Chi Sono" here: "Contatti" -gitrepo: "Progetti" repo: "Pacchetti" legal: "Privacy" language: "Lingua" -- cgit v1.2.3