summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/js/not-found-page.js
AgeCommit message (Collapse)AuthorFilesLines
2026-04-17Revert "fix: use Hugo content-based 404 pages for proper multilingual support"Danilo M.1-0/+12
This reverts commit 1cab4424a5c6dd2aeb453d299b6a2f12a840599d.
2026-04-17fix: use Hugo content-based 404 pages for proper multilingual supportDanilo M.1-12/+0
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-0/+12
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-17debug: add console.log to test Alpine.js component registrationDanilo M.1-0/+4
2026-04-17fix: simplify Alpine.js component initialization by loading articles data ↵Danilo M.1-8/+1
directly
2026-04-17fix: refactor 404 page to use Alpine.data() pattern for proper function ↵Danilo M.1-0/+38
registration