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/partials | |
| 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/partials')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html | 15 | ||||
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/header.html | 7 |
2 files changed, 4 insertions, 18 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html b/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html index ee80d20..bdcbca9 100644 --- a/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html +++ b/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html @@ -30,9 +30,6 @@ {{ end }} </nav> - <!-- Divider --> - <div class="border-t border-border/30 mx-6"></div> - <!-- Language switcher --> <div class="p-6"> <div class="text-sm text-text-dim mb-3">{{ i18n "language" }}</div> @@ -55,7 +52,6 @@ {{ end }} {{ end }} <a - data-lang-switch="{{ $langCode }}" href="{{ $url }}" class="flex-1 py-2 px-3 text-center rounded transition-colors {{ if $current }}bg-accent text-white{{ else }}bg-surface hover:bg-surface/80{{ end }}" > @@ -65,17 +61,6 @@ </div> </div> - <!-- Theme toggle --> - <div class="p-6 border-t border-border/30"> - <button - id="theme-toggle" - @click="closeMenu()" - class="w-full py-3 px-4 bg-surface hover:bg-surface/80 rounded flex items-center justify-center gap-2 transition-colors" - > - <i data-feather="moon" class="w-4 h-4"></i> - <span>{{ i18n "toggleTheme" }}</span> - </button> - </div> </div> </div> diff --git a/themes/danix-xyz-hacker/layouts/partials/header.html b/themes/danix-xyz-hacker/layouts/partials/header.html index 3146775..2ddb2e3 100644 --- a/themes/danix-xyz-hacker/layouts/partials/header.html +++ b/themes/danix-xyz-hacker/layouts/partials/header.html @@ -1,8 +1,9 @@ <header class="sticky top-0 z-50 bg-bg2/92 backdrop-blur border-b border-border"> <nav class="container mx-auto px-4 py-4 flex items-center justify-between"> - <!-- Logo --> - <a href="{{ .Site.BaseURL }}" class="font-bold text-lg text-accent font-oxanium"> - danix + <!-- Logo and Site Name --> + <a href="{{ .Site.BaseURL }}" class="flex items-center gap-2 hover:opacity-80 transition-opacity"> + <img src="/images/lampD.png" alt="Logo" style="width: 40px; height: 40px; max-width: none;" class="flex-shrink-0"> + <span class="hidden md:inline font-bold text-lg text-accent font-oxanium">danix.xyz</span> </a> <!-- Desktop menu (hidden on mobile) --> |
