summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/articles
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 21:18:40 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 21:18:40 +0200
commiteb8a17482fc138c861db685f9efc86871bf2d7d2 (patch)
treea092c13a4858d434340e2c683748226b0004308e /themes/danix-xyz-hacker/layouts/articles
parent1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc (diff)
downloaddanixxyz-eb8a17482fc138c861db685f9efc86871bf2d7d2.tar.gz
danixxyz-eb8a17482fc138c861db685f9efc86871bf2d7d2.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/articles')
-rw-r--r--themes/danix-xyz-hacker/layouts/articles/single.html7
1 files changed, 6 insertions, 1 deletions
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 @@
<div class="border-t border-border pt-8">
<h3 class="text-lg font-semibold text-accent mb-4">{{ i18n "tags" }}</h3>
<div class="flex flex-wrap gap-2">
+ {{ $lang := .Lang }}
{{ range .Params.tags }}
+ {{ $tagUrl := printf "/tags/%s/" (. | urlize) }}
+ {{ if eq $lang "it" }}
+ {{ $tagUrl = printf "/it/tags/%s/" (. | urlize) }}
+ {{ end }}
<a
- href="/tags/{{ . | urlize }}/"
+ href="{{ $tagUrl }}"
class="inline-flex items-center px-3 py-1 border border-border/30 rounded hover:border-accent/50 hover:text-accent transition-colors text-sm"
>
{{ . }}