]> danix's work - danix.xyz-2.git/commit
fix: detect language from permalink instead of .Lang in 404 template
authorDanilo M. <redacted>
Fri, 17 Apr 2026 09:44:47 +0000 (11:44 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 09:44:47 +0000 (11:44 +0200)
commit4ea2790206ca925bcf810c3b10d8c18e44015c61
tree5fad62a4097f487c60adf71088a3980cbbb912d9
parentdb63ac7d287909b5f4bde23d460d8c4f3731b63e
fix: detect language from permalink instead of .Lang in 404 template

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 <redacted>
themes/danix-xyz-hacker/layouts/404.html