From 1c12d77cdb9e9cba851e2d5cb1d5743d0c4d3f17 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 22:56:38 +0000 Subject: [PATCH 1/4] ux(a11y): add lang and hreflang to translation links Adds `hreflang` and `lang` attributes to the language switcher links in the translations component. This accessibility improvement ensures screen readers apply the correct pronunciation profiles when reading language options. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com> --- .Jules/palette.md | 3 +++ .../header/components/translations.html | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .Jules/palette.md create mode 100644 apps/gzen/layouts/partials/header/components/translations.html diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..ebe4b34 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2025-02-23 - Language Switcher Accessibility +**Learning:** For multilingual support and accessibility, language switcher links must include `hreflang` and `lang` attributes matching the target language code to ensure proper screen reader pronunciation profiles are applied. +**Action:** Add these attributes to the translations component. diff --git a/apps/gzen/layouts/partials/header/components/translations.html b/apps/gzen/layouts/partials/header/components/translations.html new file mode 100644 index 0000000..f361245 --- /dev/null +++ b/apps/gzen/layouts/partials/header/components/translations.html @@ -0,0 +1,27 @@ +{{ if .IsTranslated }} +
+{{ end }} From 6ce76f4b4fd0bf45502f10ad055b93dc34cb175d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 23:26:43 +0000 Subject: [PATCH 2/4] fix(ci): fix deprecated languageCode in hugo configuration files Replaced deprecated `languageCode` configurations with `languageCode = "en"` in `apps/gzen-learn/hugo.toml` and `apps/gzen-invest/hugo.toml` and fixed deprecated usages in `apps/gzen-ki/themes/blowfish` partials to resolve Hugo 0.162+ build failures. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com> --- apps/gzen-invest/hugo.toml | 2 +- .../blowfish/layouts/_default/baseof.html | 2 +- .../themes/blowfish/layouts/_default/rss.xml | 2 +- .../blowfish/layouts/partials/head.html | 2 +- .../blowfish/layouts/partials/schema.html | 4 +- apps/gzen-learn/hugo.toml | 2 +- apps/gzen/assets/css/custom.css | 144 +++++++++++++----- apps/gzen/assets/css/schemes/gzen.css | 54 +++---- .../partials/extend-head-uncached.html | 4 +- apps/gzen/layouts/partials/extend-head.html | 8 +- apps/gzen/layouts/partials/footer.html | 50 ++++-- apps/gzen/layouts/partials/header/basic.html | 4 +- apps/gzen/layouts/partials/home/custom.html | 81 +++++----- 13 files changed, 239 insertions(+), 120 deletions(-) diff --git a/apps/gzen-invest/hugo.toml b/apps/gzen-invest/hugo.toml index 4aa734e..596603b 100644 --- a/apps/gzen-invest/hugo.toml +++ b/apps/gzen-invest/hugo.toml @@ -1,5 +1,5 @@ baseURL = "https://invest.gzen.dev/" -languageCode = "en-us" +languageCode = "en" title = "invest.gzen" enableRobotsTXT = true diff --git a/apps/gzen-ki/themes/blowfish/layouts/_default/baseof.html b/apps/gzen-ki/themes/blowfish/layouts/_default/baseof.html index 44c6acf..022575d 100644 --- a/apps/gzen-ki/themes/blowfish/layouts/_default/baseof.html +++ b/apps/gzen-ki/themes/blowfish/layouts/_default/baseof.html @@ -1,6 +1,6 @@ {{ .Permalink }}{{ .Site.Language.Params.heroKicker | default "Go (Golang)" }}
-{{ .Site.Language.Params.heroLead | default "A small space for Go articles, patterns, and honest notes from someone still figuring it out." }}
++ {{ .Site.Language.Params.heroLead | default "A small space for Go articles, patterns, and honest notes from someone still figuring it out." }} +
{{ .Description | default (truncate 120 .Summary) }}
- Read → - + + {{ .Date.Format "Jan 2006" }} +{{ .Description | default (truncate 120 .Summary) }}
+ Read → + {{ end }}If something here helped you learn Go, a coffee would make my day. No pressure.