summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/404.html
AgeCommit message (Collapse)AuthorFilesLines
2026-04-17fix: use language-specific 404 layouts with hardcoded stringsDanilo M.1-151/+0
Created 404.en.html and 404.it.html with fully hardcoded English and Italian text. Hugo automatically routes language-specific requests to the correct layout. No i18n, no hacks, just simple and direct. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: simplify 404 page to use Hugo's standard i18n without hacksDanilo M.1-9/+4
Removed JavaScript language detection and Alpine component. Use simple static links that work with both languages. Hugo's redirect rules and i18n system handle language context automatically. No JavaScript hacks. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17Revert "fix: use language-specific 404 layouts for proper i18n support"Danilo M.1-0/+156
This reverts commit 94a11324999f07feff138364633e8442947b628a.
2026-04-17fix: use language-specific 404 layouts for proper i18n supportDanilo M.1-156/+0
Created separate 404.html layouts in themes/danix-xyz-hacker/layouts/it/ and themes/danix-xyz-hacker/layouts/en/ with hardcoded language-specific links. Hugo automatically routes language requests to the correct layout, enabling proper i18n context and translations. Removed generic 404.html and all JavaScript detection hacks. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17Revert "fix: detect language server-side in 404 template for proper ↵Danilo M.1-48/+13
translations" This reverts commit b25385f7313edce6191a038dc906d88d6b26c7a3.
2026-04-17fix: detect language server-side in 404 template for proper translationsDanilo M.1-13/+48
Added language detection at template level to determine language from permalink and build translation dictionary. All i18n strings now use language-aware translations instead of relying on .Lang context which isn't available in 404 handler. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: use client-side language detection with redirect rules for 404 navigationDanilo M.1-3/+3
Rely on hugo.toml redirect rules to serve correct 404.html and detect language from window.location.pathname in notFoundNav() Alpine component. Navigation links now properly route to Italian (/it/*) or English (/*) sections based on request URL. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17Revert "fix: use Hugo content-based 404 pages for proper multilingual support"Danilo M.1-8/+9
This reverts commit 1cab4424a5c6dd2aeb453d299b6a2f12a840599d.
2026-04-17fix: use Hugo content-based 404 pages for proper multilingual supportDanilo M.1-9/+8
Created language-specific 404 pages (content/en/404.md and content/it/404.md) instead of using JavaScript detection. Hugo now properly routes 404 errors to the correct language context, allowing .Lang and i18n to work correctly. Removed JS language detection hack. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: use client-side language detection for 404 navigation linksDanilo M.1-12/+9
Added window.currentLang detection based on request URL path to correctly route 404 page navigation links for Italian and English versions. Created notFoundNav() Alpine component to dynamically compute language-aware links based on detected language. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: detect language from permalink instead of .Lang in 404 templateDanilo M.1-6/+10
Hugo's .Lang is unreliable in 404 context. Changed to detect language from the request permalink (checking for /it/ prefix) to properly route Italian 404 pages to Italian content sections. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: use language-aware URL construction for 404 navigation linksDanilo M.1-3/+7
Updated home, articles, and contact links to properly handle IT/EN language routing by checking .Lang and building URLs without BaseURL prefix, matching the pattern used in header.html Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: easter egg modal visibility by removing conflicting hidden classDanilo M.1-2/+2
Changed modal display from static 'hidden' class to conditional binding that only applies 'hidden' when showEasterEgg is false. This prevents Tailwind's display: none !important from overriding the flex layout binding. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: add type="button" to all buttons to prevent form submission behaviorDanilo M.1-0/+4
2026-04-17fix: simplify Alpine.js component initialization by loading articles data ↵Danilo M.1-1/+1
directly
2026-04-17fix: correct Alpine.js x-init syntax for article data initializationDanilo M.1-1/+1
2026-04-17fix: refactor 404 page to use Alpine.data() pattern for proper function ↵Danilo M.1-39/+12
registration
2026-04-17fix: move notFoundPage() function definition before x-data initialization to ↵Danilo M.1-40/+43
fix easter egg button
2026-04-17fix: improve styling and functionality for 404 and Repository pagesDanilo M.1-34/+35
- 404.html: Move x-data directive to wrap entire content including modal, fixing Easter egg button click functionality. Add border, glow, and bg styling to main container. - repository/list.html: Add border, glow, rounded, and bg styling to article container for consistency with other pages. - Both pages now have consistent visual styling with borders, glows, and proper background colors. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17Fix styling issues on 404 and Repository pagesDanilo M.1-6/+7
- Add proper container styling (mx-auto, px-4, py-12) to main content wrappers matching single.html pattern - Replace gray color hardcodes with theme-aware CSS variables: - bg-gray-50/gray-900 → bg-bg/50 with hover:bg-bg/70 for article cards - text-gray-600/gray-400 → text-text-dim for text - border-gray-300/gray-700 → border-border for borders - bg-gray-200/gray-800 → bg-border/20 for tags - Fixes color inconsistency in both light and dark modes - Ensures 404 latest articles and Repository tags use theme colors instead of fixed gray Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17feat: create 404 error page with search, recent articles, and easter eggDanilo M.1-0/+169