From: Danilo M. Date: Fri, 17 Apr 2026 09:57:11 +0000 (+0200) Subject: Revert "fix: detect language server-side in 404 template for proper translations" X-Git-Tag: release_22042026-1342~131 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=22f60cd3a437d369328f0eb75542602460c526d7;p=danix.xyz-2.git Revert "fix: detect language server-side in 404 template for proper translations" This reverts commit b25385f7313edce6191a038dc906d88d6b26c7a3. --- diff --git a/themes/danix-xyz-hacker/layouts/404.html b/themes/danix-xyz-hacker/layouts/404.html index 9b50b44..341f90b 100644 --- a/themes/danix-xyz-hacker/layouts/404.html +++ b/themes/danix-xyz-hacker/layouts/404.html @@ -1,40 +1,5 @@ {{ define "main" }} -{{ $lang := "en" }} -{{ if in .Permalink "/it/" }} - {{ $lang = "it" }} -{{ end }} - -{{ $translations := dict "en" (dict - "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" -) "it" (dict - "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ù" -) }} - -{{ $t := index $translations $lang }} -