summaryrefslogtreecommitdiffstats
path: root/hugo.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-17 12:24:04 +0200
committerDanilo M. <danix@danix.xyz>2026-04-17 12:24:04 +0200
commitfe7c7a4841a58dec4b4957e9c9a32aec5adcade6 (patch)
tree52cb0c138c7dcd611766f4dc55cf05be58ed5403 /hugo.toml
parent971393bdc893c3096c90f2342cb9bb70ab0e2922 (diff)
downloaddanixxyz-fe7c7a4841a58dec4b4957e9c9a32aec5adcade6.tar.gz
danixxyz-fe7c7a4841a58dec4b4957e9c9a32aec5adcade6.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugo.toml b/hugo.toml
index 364d0d3..efbf60b 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -127,10 +127,10 @@ enableRobotsTXT = true
[[redirects]]
from = '/it/**'
- to = '/it/404.html'
+ to = '/it/'
status = 404
[[redirects]]
from = '/**'
- to = '/404.html'
+ to = '/'
status = 404