From: Danilo M. Date: Fri, 17 Apr 2026 08:41:05 +0000 (+0200) Subject: feat: create 404 error page with search, recent articles, and easter egg X-Git-Tag: release_22042026-1342~159 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=731b53a02d16cc2b704668237314d778b6dbab1f;p=danix.xyz-2.git feat: create 404 error page with search, recent articles, and easter egg --- diff --git a/themes/danix-xyz-hacker/i18n/en.yaml b/themes/danix-xyz-hacker/i18n/en.yaml index 164b6a8..be5e352 100644 --- a/themes/danix-xyz-hacker/i18n/en.yaml +++ b/themes/danix-xyz-hacker/i18n/en.yaml @@ -49,3 +49,18 @@ error: "An error occurred. Please try again." # Social follow: "Follow me" contactMe: "Contact me" + +# 404 Page +notFoundHeading: "404" +notFound: "Page Not Found" +notFoundMessage: "Sorry, the page you're looking for doesn't exist. Try searching or browse the articles below." +searchPlaceholder: "Search articles..." +noSearchResults: "No articles found matching your search." +recentArticles: "Recent Articles" +goHome: "Go Home" +browseArticles: "Browse Articles" +contactSupport: "Get in Touch" +followWhiteRabbit: "Follow the white rabbit..." +easterEggTitle: "Choose Your Path" +bluePill: "Stay Here" +redPill: "Show Me More" diff --git a/themes/danix-xyz-hacker/i18n/it.yaml b/themes/danix-xyz-hacker/i18n/it.yaml index 926bf01..4c2bf82 100644 --- a/themes/danix-xyz-hacker/i18n/it.yaml +++ b/themes/danix-xyz-hacker/i18n/it.yaml @@ -49,3 +49,18 @@ error: "Si è verificato un errore. Riprova." # Social follow: "Seguimi" contactMe: "Contattami" + +# 404 Page +notFoundHeading: "404" +notFound: "Pagina Non Trovata" +notFoundMessage: "Mi dispiace, la pagina che stai cercando non esiste. Prova a cercare o sfoglia gli articoli qui sotto." +searchPlaceholder: "Cerca articoli..." +noSearchResults: "Nessun articolo trovato che corrisponda alla tua ricerca." +recentArticles: "Articoli Recenti" +goHome: "Torna a Casa" +browseArticles: "Sfoglia Articoli" +contactSupport: "Contattami" +followWhiteRabbit: "Segui il coniglio bianco..." +easterEggTitle: "Scegli il Tuo Percorso" +bluePill: "Rimani Qui" +redPill: "Mostrami di Più" diff --git a/themes/danix-xyz-hacker/layouts/404.html b/themes/danix-xyz-hacker/layouts/404.html new file mode 100644 index 0000000..8cb694c --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/404.html @@ -0,0 +1,169 @@ +{{ define "main" }} +
+
+ +

+ 404 +

+ + +

+ {{ i18n "notFound" }} +

+ +

+ {{ i18n "notFoundMessage" }} +

+ + +
+
+ + +
+
+ +
+
+ {{ i18n "noSearchResults" }} +
+
+ + +
+

{{ i18n "recentArticles" }}

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