From 94a11324999f07feff138364633e8442947b628a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 17 Apr 2026 11:58:02 +0200 Subject: 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 --- themes/danix-xyz-hacker/layouts/404.html | 156 ------------------------------- 1 file changed, 156 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/404.html (limited to 'themes/danix-xyz-hacker/layouts/404.html') diff --git a/themes/danix-xyz-hacker/layouts/404.html b/themes/danix-xyz-hacker/layouts/404.html deleted file mode 100644 index 341f90b..0000000 --- a/themes/danix-xyz-hacker/layouts/404.html +++ /dev/null @@ -1,156 +0,0 @@ -{{ define "main" }} - - - - - - - -
-
-
- -

- 404 -

- - -

- {{ i18n "notFound" }} -

- -

- {{ i18n "notFoundMessage" }} -

- - -
-
- - -
-
- -
-
- {{ i18n "noSearchResults" }} -
-
- - -
-

{{ i18n "recentArticles" }}

-
- {{ range first 5 (where .Site.RegularPages "Section" "articles") }} - - {{ end }} -
-
- - - - - -
- -
- - -
- -
- - -
-

{{ i18n "easterEggTitle" }}

- -
- - - -
- - -
-
-
-
-
- -{{ end }} -- cgit v1.2.3