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/_default/baseof.html | 7 +++---- themes/danix-xyz-hacker/layouts/_default/single.html | 7 ++++++- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'themes/danix-xyz-hacker/layouts/_default') diff --git a/themes/danix-xyz-hacker/layouts/_default/baseof.html b/themes/danix-xyz-hacker/layouts/_default/baseof.html index 80137c1..f0a9283 100644 --- a/themes/danix-xyz-hacker/layouts/_default/baseof.html +++ b/themes/danix-xyz-hacker/layouts/_default/baseof.html @@ -10,6 +10,9 @@ {{ .Title }}{{ if ne .Title .Site.Title }} — {{ .Site.Title }}{{ end }} + + + @@ -68,10 +71,6 @@ {{ $menuScript := resources.Get "js/menu.js" | minify }} - - {{ $langScript := resources.Get "js/language-switcher.js" | minify }} - - {{ $contactScript := resources.Get "js/contact-form.js" | minify }} diff --git a/themes/danix-xyz-hacker/layouts/_default/single.html b/themes/danix-xyz-hacker/layouts/_default/single.html index 9da9eaa..3269dec 100644 --- a/themes/danix-xyz-hacker/layouts/_default/single.html +++ b/themes/danix-xyz-hacker/layouts/_default/single.html @@ -16,9 +16,14 @@

{{ i18n "tags" }}

+ {{ $lang := .Lang }} {{ range .Params.tags }} + {{ $tagUrl := printf "/tags/%s/" (. | urlize) }} + {{ if eq $lang "it" }} + {{ $tagUrl = printf "/it/tags/%s/" (. | urlize) }} + {{ end }} {{ . }} -- cgit v1.2.3