summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/partials/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials/header.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/header.html6
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>