]> danix's work - danix.xyz-2.git/commit
fix: use content-based 404 pages with proper language context
authorDanilo M. <redacted>
Fri, 17 Apr 2026 10:24:04 +0000 (12:24 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 10:24:04 +0000 (12:24 +0200)
commitfe7c7a4841a58dec4b4957e9c9a32aec5adcade6
tree52cb0c138c7dcd611766f4dc55cf05be58ed5403
parent971393bdc893c3096c90f2342cb9bb70ab0e2922
fix: use content-based 404 pages with proper language context

Created language-specific 404 content pages (content/en/404.md and
content/it/404.md) that Hugo renders with the correct language context.
Updated redirect rules and created _default/404.html layout that uses
i18n properly. Now .Lang is set correctly for translation strings.

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]
hugo.toml
themes/danix-xyz-hacker/layouts/404.it.html [deleted file]
themes/danix-xyz-hacker/layouts/_default/404.html [moved from themes/danix-xyz-hacker/layouts/404.en.html with 80% similarity]