]> danix's work - danix.xyz-2.git/commitdiff
refactor: localize footer copyright bar and about section labels/values
authorDanilo M. <redacted>
Mon, 20 Apr 2026 10:51:12 +0000 (12:51 +0200)
committerDanilo M. <redacted>
Mon, 20 Apr 2026 10:51:12 +0000 (12:51 +0200)
Add i18n keys for all footer text:
- Copyright bar: "Made with X lack of Y lots of Z by"
- Screen-reader text: love, sleep, coffee
- About section labels: role, cert, os, focus
- About section values: Cybersecurity Specialist, Slackware, OS year range, open-source · privacy

English and Italian translations provided.

All footer text now responds to language selection with no hardcoded strings.

Co-Authored-By: Claude Haiku 4.5 <redacted>
i18n/en.yaml
i18n/it.yaml
themes/danix-xyz-hacker/layouts/partials/footer.html

index 874c0e6345d514054bc8c5fca73d43153932e8ab..96e0a334b8c29cb1b3463150bae40185a679873f 100644 (file)
@@ -16,6 +16,21 @@ links: "Links"
 allRightsReserved: "All rights reserved."
 footer_built_with: "built with"
 footer_features: "features"
+footer_made_with: "Made with"
+footer_lack_of: "lack of"
+footer_lots_of: "lots of"
+footer_by: "by"
+footer_love: "love"
+footer_sleep: "sleep"
+footer_coffee: "coffee"
+footer_about_role: "role"
+footer_about_cert: "cert"
+footer_about_os: "os"
+footer_about_focus: "focus"
+footer_about_role_value: "Cybersecurity Specialist"
+footer_about_os_value: "Slackware"
+footer_about_os_year: "2005–present"
+footer_about_focus_value: "open-source · privacy"
 
 # Articles
 readMore: "Read more"
index 8c3eba12d59bb1f6cfaac97eb0286cd75a12d78d..f3879783c6d0145124adc177c8c885b9c55629e8 100644 (file)
@@ -16,6 +16,21 @@ links: "Link"
 allRightsReserved: "Tutti i diritti riservati."
 footer_built_with: "costruito con"
 footer_features: "caratteristiche"
+footer_made_with: "Fatto con"
+footer_lack_of: "mancanza di"
+footer_lots_of: "molti"
+footer_by: "da"
+footer_love: "amore"
+footer_sleep: "sonno"
+footer_coffee: "caffè"
+footer_about_role: "ruolo"
+footer_about_cert: "cert"
+footer_about_os: "os"
+footer_about_focus: "focus"
+footer_about_role_value: "Specialista in Cybersecurity"
+footer_about_os_value: "Slackware"
+footer_about_os_year: "2005–presente"
+footer_about_focus_value: "open-source · privacy"
 
 # Articles
 readMore: "Continua a leggere"
index 006714be7637535caab633eac737575b1fbb4215..ffa9ad24b3814749fabc55dbd6a7456ed0c4be08 100644 (file)
       <div>
         <dl class="space-y-1">
           <div class="flex gap-2">
-            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">role:</dt>
-            <dd class="text-text font-mono text-xs">Cybersecurity Specialist</dd>
+            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">{{ i18n "footer_about_role" }}:</dt>
+            <dd class="text-text font-mono text-xs">{{ i18n "footer_about_role_value" }}</dd>
           </div>
           <div class="flex gap-2">
-            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">cert:</dt>
+            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">{{ i18n "footer_about_cert" }}:</dt>
             <dd class="text-accent2 font-mono text-xs font-semibold">eJPT</dd>
           </div>
           <div class="flex gap-2">
-            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">os:</dt>
-            <dd class="text-text font-mono text-xs">Slackware <span class="text-text-dim">(2005–present)</span></dd>
+            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">{{ i18n "footer_about_os" }}:</dt>
+            <dd class="text-text font-mono text-xs">{{ i18n "footer_about_os_value" }} <span class="text-text-dim">({{ i18n "footer_about_os_year" }})</span></dd>
           </div>
           <div class="flex gap-2">
-            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">focus:</dt>
-            <dd class="text-text font-mono text-xs">open-source · privacy</dd>
+            <dt class="text-text-dim font-mono text-xs w-20 shrink-0">{{ i18n "footer_about_focus" }}:</dt>
+            <dd class="text-text font-mono text-xs">{{ i18n "footer_about_focus_value" }}</dd>
           </div>
         </dl>
       </div>
     <!-- Copyright Bar -->
     <div class="pt-8 border-t border-border text-center text-xs text-text-dim space-y-1">
       <p>
-        Made with <span aria-hidden="true">❤️</span><span class="sr-only">love</span>,
-        lack of <span aria-hidden="true">😴</span><span class="sr-only">sleep</span>,
-        lots of <span aria-hidden="true">☕</span><span class="sr-only">coffee</span>
-        by <a href="{{ .Site.LanguagePrefix }}/is/" class="text-accent hover:text-accent2 transition-colors py-2 px-1">danix</a>
+        {{ i18n "footer_made_with" }} <span aria-hidden="true">❤️</span><span class="sr-only">{{ i18n "footer_love" }}</span>,
+        {{ i18n "footer_lack_of" }} <span aria-hidden="true">😴</span><span class="sr-only">{{ i18n "footer_sleep" }}</span>,
+        {{ i18n "footer_lots_of" }} <span aria-hidden="true">☕</span><span class="sr-only">{{ i18n "footer_coffee" }}</span>
+        {{ i18n "footer_by" }} <a href="{{ .Site.LanguagePrefix }}/is/" class="text-accent hover:text-accent2 transition-colors py-2 px-1">danix</a>
       </p>
       <p>&copy; {{ now.Year }} {{ .Site.Params.author }}. {{ i18n "allRightsReserved" }}</p>
     </div>