From 1cab4424a5c6dd2aeb453d299b6a2f12a840599d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 17 Apr 2026 11:49:24 +0200 Subject: 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 --- content/en/404.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 content/en/404.md (limited to 'content/en') diff --git a/content/en/404.md b/content/en/404.md new file mode 100644 index 0000000..6e619f2 --- /dev/null +++ b/content/en/404.md @@ -0,0 +1,5 @@ +--- +title: "404 Not Found" +outputs: + - html +--- -- cgit v1.2.3