diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-17 12:24:04 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-17 12:24:04 +0200 |
| commit | fe7c7a4841a58dec4b4957e9c9a32aec5adcade6 (patch) | |
| tree | 52cb0c138c7dcd611766f4dc55cf05be58ed5403 /content | |
| parent | 971393bdc893c3096c90f2342cb9bb70ab0e2922 (diff) | |
| download | danixxyz-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 'content')
| -rw-r--r-- | content/en/404.md | 5 | ||||
| -rw-r--r-- | content/it/404.md | 5 |
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..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 +--- |
