]> danix's work - danix.xyz-2.git/commit
fix: use Hugo content-based 404 pages for proper multilingual support
authorDanilo M. <redacted>
Fri, 17 Apr 2026 09:49:24 +0000 (11:49 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 09:49:24 +0000 (11:49 +0200)
commit1cab4424a5c6dd2aeb453d299b6a2f12a840599d
tree6f4b1bf3b575f38bd4219da64f839a02a85438e9
parentc353452c544a3184ec66e05fa1743a592543a4d0
fix: use Hugo content-based 404 pages for proper multilingual support

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 <redacted>
content/en/404.md [new file with mode: 0644]
content/it/404.md [new file with mode: 0644]
themes/danix-xyz-hacker/assets/js/not-found-page.js
themes/danix-xyz-hacker/layouts/404.html