diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-15 21:18:40 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-15 21:18:40 +0200 |
| commit | eb8a17482fc138c861db685f9efc86871bf2d7d2 (patch) | |
| tree | a092c13a4858d434340e2c683748226b0004308e /themes/danix-xyz-hacker/layouts/index.html | |
| parent | 1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc (diff) | |
| download | danixxyz-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/index.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/index.html | 20 |
1 files changed, 14 insertions, 6 deletions
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" }} <section class="min-h-[calc(100vh-200px)] flex items-center justify-center px-4 py-12"> - <div class="max-w-2xl w-full"> + <div class="max-w-4xl w-full"> <!-- Profile Image (optional) --> {{ if .Params.image }} <div class="flex justify-center mb-8"> @@ -13,20 +13,28 @@ {{ end }} <!-- Author Name --> - <h1 class="text-4xl md:text-5xl font-bold text-accent text-center mb-4"> +<!-- <h1 class="text-4xl md:text-5xl font-bold text-accent text-center mb-4"> {{ .Site.Params.author }} </h1> - + --> <!-- Bio (from page content) --> - <div class="text-lg text-text-dim text-center mb-8 leading-relaxed prose prose-invert max-w-none"> + <div class="text-xl text-text-dim text-center mb-8 leading-relaxed prose prose-invert max-w-none"> {{ .Content }} </div> <!-- Call-to-Action Buttons --> <div class="flex flex-col sm:flex-row gap-4 justify-center"> + {{ $lang := .Lang }} + {{ $articlesUrl := "/articles/" }} + {{ $contactUrl := "/is/here/" }} + {{ if eq $lang "it" }} + {{ $articlesUrl = "/it/articles/" }} + {{ $contactUrl = "/it/is/here/" }} + {{ end }} + <!-- Articles Button --> <a - href="/articles/" + href="{{ $articlesUrl }}" class="px-8 py-3 bg-accent text-white rounded font-semibold hover:opacity-90 transition-opacity text-center" > {{ i18n "articles" }} @@ -34,7 +42,7 @@ <!-- Contact Button --> <a - href="/is/here/" + href="{{ $contactUrl }}" class="px-8 py-3 border-2 border-accent text-accent rounded font-semibold hover:bg-accent/10 transition-colors text-center" > {{ i18n "contact" }} |
