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 --- content/en/404.md | 5 +++++ content/it/404.md | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 content/en/404.md create mode 100644 content/it/404.md (limited to 'content') diff --git a/content/en/404.md b/content/en/404.md new file mode 100644 index 0000000..ce95b59 --- /dev/null +++ b/content/en/404.md @@ -0,0 +1,5 @@ +--- +title: "404" +outputs: + - html +--- diff --git a/content/it/404.md b/content/it/404.md new file mode 100644 index 0000000..ce95b59 --- /dev/null +++ b/content/it/404.md @@ -0,0 +1,5 @@ +--- +title: "404" +outputs: + - html +--- -- cgit v1.2.3