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 --- themes/danix-xyz-hacker/layouts/404.en.html | 151 ---------------------------- 1 file changed, 151 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/404.en.html (limited to 'themes/danix-xyz-hacker/layouts/404.en.html') diff --git a/themes/danix-xyz-hacker/layouts/404.en.html b/themes/danix-xyz-hacker/layouts/404.en.html deleted file mode 100644 index e1fd8c5..0000000 --- a/themes/danix-xyz-hacker/layouts/404.en.html +++ /dev/null @@ -1,151 +0,0 @@ -{{ define "main" }} - - - - -
-
-
- -

- 404 -

- - -

- Page Not Found -

- -

- Sorry, the page you're looking for doesn't exist. Try searching or browse the articles below. -

- - -
-
- - -
-
- -
-
- No articles found matching your search. -
-
- - -
-

Recent Articles

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

Choose Your Path

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