]> danix's work - danix.xyz-2.git/commit
fix: use language-specific 404 layouts for proper i18n support
authorDanilo M. <redacted>
Fri, 17 Apr 2026 09:58:02 +0000 (11:58 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 09:58:02 +0000 (11:58 +0200)
commit94a11324999f07feff138364633e8442947b628a
treefe2f7d918a1829f504f7e5bdba7cffea2e1816f1
parent22f60cd3a437d369328f0eb75542602460c526d7
fix: use language-specific 404 layouts for proper i18n support

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 <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/en/404.html [moved from themes/danix-xyz-hacker/layouts/404.html with 91% similarity]
themes/danix-xyz-hacker/layouts/it/404.html [new file with mode: 0644]