From eb8a17482fc138c861db685f9efc86871bf2d7d2 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 21:18:40 +0200 Subject: Complete multilingual theme implementation with language-aware menus - Refactor hugo.toml to define menus separately for each language using pageRef - Simplify header and hamburger-menu templates to use Hugo-native language handling - Update content structure with proper language prefix organization - Remove JavaScript language-switcher in favor of Hugo's native approach - Add new layout templates for /is/ section with list view - Update HANDOFF.md with current implementation status - Rebuild minified CSS with updated template changes Co-Authored-By: Claude Haiku 4.5 --- themes/danix-xyz-hacker/layouts/index.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'themes/danix-xyz-hacker/layouts/index.html') diff --git a/themes/danix-xyz-hacker/layouts/index.html b/themes/danix-xyz-hacker/layouts/index.html index e9d2c39..ed151cb 100644 --- a/themes/danix-xyz-hacker/layouts/index.html +++ b/themes/danix-xyz-hacker/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
+
{{ if .Params.image }}
@@ -13,20 +13,28 @@ {{ end }} -

+ -
+
{{ .Content }}
+ {{ $lang := .Lang }} + {{ $articlesUrl := "/articles/" }} + {{ $contactUrl := "/is/here/" }} + {{ if eq $lang "it" }} + {{ $articlesUrl = "/it/articles/" }} + {{ $contactUrl = "/it/is/here/" }} + {{ end }} + {{ i18n "articles" }} @@ -34,7 +42,7 @@ {{ i18n "contact" }} -- cgit v1.2.3