summaryrefslogtreecommitdiffstats
path: root/hugo.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-17 12:18:40 +0200
committerDanilo M. <danix@danix.xyz>2026-04-17 12:18:40 +0200
commitd98d7b2d669368ce8b1cd135742b6a52c7b8f29b (patch)
tree745a797862a450cf81da05e180d41a61646aeeb4 /hugo.toml
parente66a7d08e8ea7ab6ca14a8dfc7b1b12e8d7b3574 (diff)
downloaddanixxyz-d98d7b2d669368ce8b1cd135742b6a52c7b8f29b.tar.gz
danixxyz-d98d7b2d669368ce8b1cd135742b6a52c7b8f29b.zip
fix: use language-specific 404 layouts with hardcoded strings
Created 404.en.html and 404.it.html with fully hardcoded English and Italian text. Hugo automatically routes language-specific requests to the correct layout. No i18n, no hacks, just simple and direct. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugo.toml b/hugo.toml
index 4913f63..ab6d43e 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -127,10 +127,10 @@ enableRobotsTXT = true
[[redirects]]
from = '/it/**'
- to = '/it/404.html'
status = 404
+ to = '/it/404.html'
[[redirects]] # Default language should be last.
from = '/**'
- to = '/404.html'
- status = 404 \ No newline at end of file
+ status = 404
+ to = '/404.html' \ No newline at end of file