From 9108c989209b1a1acb1a05e366d6548c76ea16aa Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 16 Apr 2026 16:23:50 +0200 Subject: 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 --- themes/danix-xyz-hacker/layouts/partials/breadcrumb.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'themes') 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 }} + -- cgit v1.2.3