summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-20 12:51:12 +0200
committerDanilo M. <danix@danix.xyz>2026-04-20 12:51:12 +0200
commitfc6a430acb80824501861f16dcfd3ebcd7ff92bd (patch)
tree29f0fe015b12905b69a184c5877fca2ac6255f55
parent133a26b48c13c2ca6ffa01624552d995b5ab8fab (diff)
downloaddanixxyz-fc6a430acb80824501861f16dcfd3ebcd7ff92bd.tar.gz
danixxyz-fc6a430acb80824501861f16dcfd3ebcd7ff92bd.zip
refactor: localize footer copyright bar and about section labels/values
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 <noreply@anthropic.com>
-rw-r--r--i18n/en.yaml15
-rw-r--r--i18n/it.yaml15
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/footer.html22
3 files changed, 41 insertions, 11 deletions
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 874c0e6..96e0a33 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -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"
diff --git a/i18n/it.yaml b/i18n/it.yaml
index 8c3eba1..f387978 100644
--- a/i18n/it.yaml
+++ b/i18n/it.yaml
@@ -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"
diff --git a/themes/danix-xyz-hacker/layouts/partials/footer.html b/themes/danix-xyz-hacker/layouts/partials/footer.html
index 006714b..ffa9ad2 100644
--- a/themes/danix-xyz-hacker/layouts/partials/footer.html
+++ b/themes/danix-xyz-hacker/layouts/partials/footer.html
@@ -23,20 +23,20 @@
<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>
@@ -66,10 +66,10 @@
<!-- 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>