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/articles/single.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'themes/danix-xyz-hacker/layouts/articles/single.html') diff --git a/themes/danix-xyz-hacker/layouts/articles/single.html b/themes/danix-xyz-hacker/layouts/articles/single.html index af51739..67e8a2f 100644 --- a/themes/danix-xyz-hacker/layouts/articles/single.html +++ b/themes/danix-xyz-hacker/layouts/articles/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