From: Danilo M. Date: Thu, 16 Apr 2026 14:23:50 +0000 (+0200) Subject: feat: make breadcrumb navigation multilingual with proper links X-Git-Tag: release_22042026-1342~189 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=9108c989209b1a1acb1a05e366d6548c76ea16aa;p=danix.xyz-2.git feat: make breadcrumb navigation multilingual with proper links - Added language-aware breadcrumb links (IT uses /it/ subdir, EN uses root) - Added 'home' translation key to both i18n files - Breadcrumb now displays translated labels and correct URLs for each language Co-Authored-By: Claude Haiku 4.5 --- diff --git a/i18n/en.yaml b/i18n/en.yaml index 64b0a26..d543e6f 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,4 +1,5 @@ # Navigation & UI +home: "Home" articles: "Articles" about: "About" here: "Contact" diff --git a/i18n/it.yaml b/i18n/it.yaml index 19847e3..2f8d8e1 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1,4 +1,5 @@ # Navigation & UI +home: "Home" articles: "Articoli" about: "Chi Sono" here: "Contatti" diff --git a/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html b/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html index cae9344..aa7c1e8 100644 --- a/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html +++ b/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html @@ -1,7 +1,14 @@ +{{ $homeLink := "/" }} +{{ $articlesLink := "/articles/" }} +{{ if eq .Lang "it" }} + {{ $homeLink = "/it/" }} + {{ $articlesLink = "/it/articles/" }} +{{ end }} +