summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-17 11:49:24 +0200
committerDanilo M. <danix@danix.xyz>2026-04-17 11:49:24 +0200
commit1cab4424a5c6dd2aeb453d299b6a2f12a840599d (patch)
tree6f4b1bf3b575f38bd4219da64f839a02a85438e9 /content
parentc353452c544a3184ec66e05fa1743a592543a4d0 (diff)
downloaddanixxyz-1cab4424a5c6dd2aeb453d299b6a2f12a840599d.tar.gz
danixxyz-1cab4424a5c6dd2aeb453d299b6a2f12a840599d.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'content')
-rw-r--r--content/en/404.md5
-rw-r--r--content/it/404.md5
2 files changed, 10 insertions, 0 deletions
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
+---
diff --git a/content/it/404.md b/content/it/404.md
new file mode 100644
index 0000000..6e619f2
--- /dev/null
+++ b/content/it/404.md
@@ -0,0 +1,5 @@
+---
+title: "404 Not Found"
+outputs:
+ - html
+---