diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-16 16:29:11 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-16 16:29:11 +0200 |
| commit | ab54b0ad3baed1fa8a764cdf74adcf4dc19160ee (patch) | |
| tree | 01ead2d868dfad2d637df007fb581397fec95b93 /themes/danix-xyz-hacker/layouts/partials | |
| parent | e4de55ec3d295a9c23d427a570a9851b240b09dc (diff) | |
| download | danixxyz-ab54b0ad3baed1fa8a764cdf74adcf4dc19160ee.tar.gz danixxyz-ab54b0ad3baed1fa8a764cdf74adcf4dc19160ee.zip | |
fix: logo link now respects current language
The header logo link was hardcoded to '/' which always returned to the
English homepage when clicked from Italian pages. Now uses language-aware
routing: IT pages link to /it/, EN pages link to /
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/header.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/header.html b/themes/danix-xyz-hacker/layouts/partials/header.html index 8722e81..086dafd 100644 --- a/themes/danix-xyz-hacker/layouts/partials/header.html +++ b/themes/danix-xyz-hacker/layouts/partials/header.html @@ -1,7 +1,11 @@ <header class="sticky top-0 z-50 frosted-bar border-b"> <nav class="container mx-auto px-4 py-4 flex items-center justify-between"> <!-- Logo and Site Name --> - <a href="{{ .Site.BaseURL }}" class="flex items-center gap-2 hover:opacity-80 transition-opacity"> + {{ $homeLink := "/" }} + {{ if eq .Lang "it" }} + {{ $homeLink = "/it/" }} + {{ end }} + <a href="{{ $homeLink }}" class="flex items-center gap-2 hover:opacity-80 transition-opacity"> <img src="/images/lampD.png" alt="Logo" style="width: 40px; height: 40px; max-width: none;" class="flex-shrink-0"> <span class="hidden md:inline font-bold text-lg text-accent font-oxanium">danix.xyz</span> </a> |
