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-invest/hugo.toml b/apps/gzen-invest/hugo.toml index 4aa734e..b6995ca 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" +locale = "en" title = "invest.gzen" enableRobotsTXT = true diff --git a/apps/gzen-ki/.github/copilot-instructions.md b/apps/gzen-ki/.github/copilot-instructions.md index 26ee9ec..e9f6feb 100644 --- a/apps/gzen-ki/.github/copilot-instructions.md +++ b/apps/gzen-ki/.github/copilot-instructions.md @@ -18,7 +18,7 @@ Deployed via **Cloudflare Pages** (not GitHub Actions). ```html -{{ range .Site.Data.herbs }} +{{ range site.Data.herbs }} {{ .name_zh }} — {{ .pinyin }} {{ end }} diff --git a/apps/gzen-ki/config/_default/hugo.toml b/apps/gzen-ki/config/_default/hugo.toml index e8f279c..0ac04ee 100644 --- a/apps/gzen-ki/config/_default/hugo.toml +++ b/apps/gzen-ki/config/_default/hugo.toml @@ -1,5 +1,5 @@ baseURL = "https://genki.gzen.io/" -languageCode = "zh-CN" +locale = "zh-CN" defaultContentLanguage = "zh-cn" title = "元気・健康笔记" theme = "blowfish" diff --git a/apps/gzen-ki/config/_default/languages.zh-cn.toml b/apps/gzen-ki/config/_default/languages.zh-cn.toml index ada6f62..012e66b 100644 --- a/apps/gzen-ki/config/_default/languages.zh-cn.toml +++ b/apps/gzen-ki/config/_default/languages.zh-cn.toml @@ -1,6 +1,6 @@ disabled = false -languageCode = "zh-CN" -languageName = "中文" +locale = "zh-CN" +label = "中文" weight = 1 title = "元気・健康笔记" diff --git a/apps/gzen-ki/layouts/gallery/list.html b/apps/gzen-ki/layouts/gallery/list.html index ef05ed7..3cb58d7 100644 --- a/apps/gzen-ki/layouts/gallery/list.html +++ b/apps/gzen-ki/layouts/gallery/list.html @@ -1,5 +1,5 @@ {{/* Gallery list — Herb Gallery with filter bar - Reads from .Site.Data.herbs (data/herbs.yaml) + Reads from site.Data.herbs (data/herbs.yaml) Uses Blowfish base template via {{ define "main" }} */}} {{ define "main" }} @@ -32,7 +32,7 @@
{{ .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.