diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-17 11:58:02 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-17 11:58:02 +0200 |
| commit | 94a11324999f07feff138364633e8442947b628a (patch) | |
| tree | fe2f7d918a1829f504f7e5bdba7cffea2e1816f1 /content | |
| parent | 22f60cd3a437d369328f0eb75542602460c526d7 (diff) | |
| download | danixxyz-94a11324999f07feff138364633e8442947b628a.tar.gz danixxyz-94a11324999f07feff138364633e8442947b628a.zip | |
fix: use language-specific 404 layouts for proper i18n support
Created separate 404.html layouts in themes/danix-xyz-hacker/layouts/it/ and
themes/danix-xyz-hacker/layouts/en/ with hardcoded language-specific links.
Hugo automatically routes language requests to the correct layout, enabling
proper i18n context and translations. Removed generic 404.html and all
JavaScript detection hacks.
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 +--- |
