From fe7c7a4841a58dec4b4957e9c9a32aec5adcade6 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 17 Apr 2026 12:24:04 +0200 Subject: 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 --- hugo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hugo.toml') 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 -- cgit v1.2.3