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 /hugo.toml | |
| 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 'hugo.toml')
| -rw-r--r-- | hugo.toml | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
