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 }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io - {{ site.LanguageCode }}{{ with .Site.Params.Author.email }} + {{ site.Language.LanguageName }}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ if .Site.Params.footer.showCopyright | default true -}} diff --git a/apps/gzen-ki/themes/blowfish/layouts/partials/head.html b/apps/gzen-ki/themes/blowfish/layouts/partials/head.html index 14e617d..77de5d2 100644 --- a/apps/gzen-ki/themes/blowfish/layouts/partials/head.html +++ b/apps/gzen-ki/themes/blowfish/layouts/partials/head.html @@ -1,6 +1,6 @@ - {{ with .Site.Language.Params.htmlCode | default .Site.LanguageCode }} + {{ with .Site.Language.Params.htmlCode | default .Site.Language.LanguageName }} {{ end }} diff --git a/apps/gzen-ki/themes/blowfish/layouts/partials/schema.html b/apps/gzen-ki/themes/blowfish/layouts/partials/schema.html index 470511e..f8398c3 100644 --- a/apps/gzen-ki/themes/blowfish/layouts/partials/schema.html +++ b/apps/gzen-ki/themes/blowfish/layouts/partials/schema.html @@ -6,7 +6,7 @@ "@id": {{ site.Home.Permalink | safeURL }}, "name": "{{ .Site.Title | safeJS }}", {{ with .Site.Params.description }}"description": "{{ . | safeJS }}",{{ end }} - {{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }} + {{ with .Site.Language.LanguageName }}"inLanguage": "{{ . }}",{{ end }} "url": {{ site.Home.Permalink | safeURL }}, {{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }} "publisher" : { @@ -25,7 +25,7 @@ "name": "{{ .Title | safeJS }}", "headline": "{{ .Title | safeJS }}", {{ with .Description }}"description": "{{ . | safeJS }}",{{ end }} - {{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }} + {{ with .Site.Language.LanguageName }}"inLanguage": "{{ . }}",{{ end }} "url" : {{ .Permalink }}, "author" : { "@type": "Person", diff --git a/apps/gzen-learn/hugo.toml b/apps/gzen-learn/hugo.toml index b225cdb..96fd16d 100644 --- a/apps/gzen-learn/hugo.toml +++ b/apps/gzen-learn/hugo.toml @@ -1,5 +1,5 @@ baseURL = 'https://learn.gzen.io/' -languageCode = 'en-us' +languageCode = 'en' title = 'GZen — Japanese, Korean & Russian Language Learning' [params] diff --git a/apps/gzen/assets/css/custom.css b/apps/gzen/assets/css/custom.css index d12e388..d4c82a2 100644 --- a/apps/gzen/assets/css/custom.css +++ b/apps/gzen/assets/css/custom.css @@ -7,7 +7,7 @@ --gzen-code-bg: #f5efe8; --gzen-link: #2d6b4f; --gzen-border: #ead9c3; - --gzen-go-blue: #00ADD8; + --gzen-go-blue: #00add8; } html { @@ -29,8 +29,12 @@ html::before { animation: gzen-breathing-bg 22s ease-in-out infinite alternate; } -body, .prose { - font-family: system-ui, -apple-system, sans-serif; +body, +.prose { + font-family: + system-ui, + -apple-system, + sans-serif; line-height: 1.8; } @@ -56,7 +60,9 @@ body { } } -.prose h1, .prose h2, .prose h3 { +.prose h1, +.prose h2, +.prose h3 { font-family: "JetBrains Mono", system-ui, monospace; font-weight: 500; } @@ -130,7 +136,9 @@ body { line-height: 1.2; padding: 0.45rem 0.85rem; text-decoration: none; - transition: background-color 160ms ease, color 160ms ease; + transition: + background-color 160ms ease, + color 160ms ease; font-weight: 550; } @@ -210,7 +218,10 @@ body { line-height: 1; padding: 0.82rem 1.1rem; text-decoration: none; - transition: transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 160ms ease, box-shadow 160ms ease; + transition: + transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275), + background-color 160ms ease, + box-shadow 160ms ease; font-family: "JetBrains Mono", monospace; } @@ -233,7 +244,10 @@ body { line-height: 1; padding: 0.82rem 1.1rem; text-decoration: none; - transition: transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 160ms ease, color 160ms ease; + transition: + transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275), + border-color 160ms ease, + color 160ms ease; font-family: "JetBrains Mono", monospace; } @@ -263,7 +277,9 @@ body { width: 100%; border-radius: 10px; overflow: hidden; - box-shadow: 0 8px 30px rgba(47, 33, 24, 0.08), 0 0 0 1px rgba(234, 217, 195, 0.5); + box-shadow: + 0 8px 30px rgba(47, 33, 24, 0.08), + 0 0 0 1px rgba(234, 217, 195, 0.5); background: #2a1f18; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; @@ -285,9 +301,15 @@ body { border-radius: 50%; } -.gzen-dot-red { background: #ff5f56; } -.gzen-dot-yellow { background: #ffbd2e; } -.gzen-dot-green { background: #27c93f; } +.gzen-dot-red { + background: #ff5f56; +} +.gzen-dot-yellow { + background: #ffbd2e; +} +.gzen-dot-green { + background: #27c93f; +} .gzen-terminal-title { margin-left: auto; @@ -301,13 +323,30 @@ body { color: #e8dcd0; } -.gzen-token-keyword { color: #ff7b72; } -.gzen-token-type { color: #79c0ff; } -.gzen-token-string { color: #a5d6ff; } -.gzen-token-func { color: #d2a8ff; } -.gzen-token-comment { color: #8b949e; font-style: italic; } -.gzen-token-indent { display: inline-block; width: 1.2rem; } -.gzen-token-indent2 { display: inline-block; width: 2.4rem; } +.gzen-token-keyword { + color: #ff7b72; +} +.gzen-token-type { + color: #79c0ff; +} +.gzen-token-string { + color: #a5d6ff; +} +.gzen-token-func { + color: #d2a8ff; +} +.gzen-token-comment { + color: #8b949e; + font-style: italic; +} +.gzen-token-indent { + display: inline-block; + width: 1.2rem; +} +.gzen-token-indent2 { + display: inline-block; + width: 2.4rem; +} .gzen-cursor { animation: code-blink 1s step-end infinite; @@ -315,12 +354,19 @@ body { } @keyframes code-blink { - 0%, 100% { opacity: 1; } - 50% { opacity: 0; } + 0%, + 100% { + opacity: 1; + } + 50% { + opacity: 0; + } } .gzen-terminal:hover { - box-shadow: 0 12px 40px rgba(0, 173, 216, 0.12), 0 0 0 1px rgba(217, 120, 69, 0.4); + box-shadow: + 0 12px 40px rgba(0, 173, 216, 0.12), + 0 0 0 1px rgba(217, 120, 69, 0.4); } /* ── Home Content ──────────────────────────────────── */ @@ -407,7 +453,11 @@ body { color: inherit; position: relative; overflow: hidden; - transition: transform 180ms cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease; + transition: + transform 180ms cubic-bezier(0.165, 0.84, 0.44, 1), + box-shadow 180ms ease, + background-color 180ms ease, + border-color 180ms ease; } .gzen-card::before { @@ -521,7 +571,9 @@ body { align-items: center; justify-content: center; margin-bottom: 1.25rem; - transition: transform 200ms ease, background-color 200ms ease; + transition: + transform 200ms ease, + background-color 200ms ease; box-shadow: inset 0 2px 4px rgba(74, 44, 26, 0.02); } @@ -672,7 +724,9 @@ body { display: flex; align-items: center; gap: 0.4rem; - transition: color 150ms ease, transform 150ms ease; + transition: + color 150ms ease, + transform 150ms ease; } .gzen-footer-link:hover { @@ -732,8 +786,12 @@ body { } @keyframes gopher-breathe { - 0% { transform: scale(0.96) translateY(1px); } - 100% { transform: scale(1.04) translateY(-1px); } + 0% { + transform: scale(0.96) translateY(1px); + } + 100% { + transform: scale(1.04) translateY(-1px); + } } /* ── Responsive ────────────────────────────────────── */ @@ -818,16 +876,34 @@ article { animation: card-fade-in 0.5s ease-out both; } -.gzen-card:nth-child(1) { animation-delay: 0.05s; } -.gzen-card:nth-child(2) { animation-delay: 0.1s; } -.gzen-card:nth-child(3) { animation-delay: 0.15s; } -.gzen-card:nth-child(4) { animation-delay: 0.2s; } -.gzen-card:nth-child(5) { animation-delay: 0.25s; } -.gzen-card:nth-child(6) { animation-delay: 0.3s; } +.gzen-card:nth-child(1) { + animation-delay: 0.05s; +} +.gzen-card:nth-child(2) { + animation-delay: 0.1s; +} +.gzen-card:nth-child(3) { + animation-delay: 0.15s; +} +.gzen-card:nth-child(4) { + animation-delay: 0.2s; +} +.gzen-card:nth-child(5) { + animation-delay: 0.25s; +} +.gzen-card:nth-child(6) { + animation-delay: 0.3s; +} @keyframes card-fade-in { - 0% { opacity: 0; transform: translateY(8px); } - 100% { opacity: 1; transform: translateY(0); } + 0% { + opacity: 0; + transform: translateY(8px); + } + 100% { + opacity: 1; + transform: translateY(0); + } } /* ── Social image on hover ─────────────────────────── */ diff --git a/apps/gzen/assets/css/schemes/gzen.css b/apps/gzen/assets/css/schemes/gzen.css index fd97463..c1c7368 100644 --- a/apps/gzen/assets/css/schemes/gzen.css +++ b/apps/gzen/assets/css/schemes/gzen.css @@ -8,37 +8,37 @@ :root, html.light { - --color-primary-50: 255 248 245; + --color-primary-50: 255 248 245; --color-primary-100: 255 237 220; --color-primary-200: 250 210 174; --color-primary-300: 240 176 124; - --color-primary-400: 226 139 78; - --color-primary-500: 217 120 69; - --color-primary-600: 188 91 47; - --color-primary-700: 148 68 36; - --color-primary-800: 111 49 29; - --color-primary-900: 82 36 24; - --color-primary-950: 52 23 15; + --color-primary-400: 226 139 78; + --color-primary-500: 217 120 69; + --color-primary-600: 188 91 47; + --color-primary-700: 148 68 36; + --color-primary-800: 111 49 29; + --color-primary-900: 82 36 24; + --color-primary-950: 52 23 15; - --color-neutral-50: 255 250 244; + --color-neutral-50: 255 250 244; --color-neutral-100: 250 241 229; --color-neutral-200: 235 218 198; --color-neutral-300: 210 184 154; - --color-neutral-400: 168 132 96; - --color-neutral-500: 126 92 62; - --color-neutral-600: 98 69 45; - --color-neutral-700: 72 49 32; - --color-neutral-800: 50 34 24; - --color-neutral-900: 36 25 18; - --color-neutral-950: 24 16 11; + --color-neutral-400: 168 132 96; + --color-neutral-500: 126 92 62; + --color-neutral-600: 98 69 45; + --color-neutral-700: 72 49 32; + --color-neutral-800: 50 34 24; + --color-neutral-900: 36 25 18; + --color-neutral-950: 24 16 11; } html.dark { - --color-primary-50: 74 44 26; - --color-primary-100: 98 60 34; - --color-primary-200: 130 82 50; - --color-primary-300: 160 106 68; - --color-primary-400: 196 128 88; + --color-primary-50: 74 44 26; + --color-primary-100: 98 60 34; + --color-primary-200: 130 82 50; + --color-primary-300: 160 106 68; + --color-primary-400: 196 128 88; --color-primary-500: 232 149 109; --color-primary-600: 240 172 138; --color-primary-700: 246 198 172; @@ -46,12 +46,12 @@ html.dark { --color-primary-900: 253 240 232; --color-primary-950: 255 248 245; - --color-neutral-50: 28 16 8; - --color-neutral-100: 48 30 16; - --color-neutral-200: 74 48 28; - --color-neutral-300: 100 70 44; - --color-neutral-400: 130 92 62; - --color-neutral-500: 160 116 84; + --color-neutral-50: 28 16 8; + --color-neutral-100: 48 30 16; + --color-neutral-200: 74 48 28; + --color-neutral-300: 100 70 44; + --color-neutral-400: 130 92 62; + --color-neutral-500: 160 116 84; --color-neutral-600: 190 145 108; --color-neutral-700: 210 175 145; --color-neutral-800: 230 208 186; diff --git a/apps/gzen/layouts/partials/extend-head-uncached.html b/apps/gzen/layouts/partials/extend-head-uncached.html index 73ad9cb..2354e9a 100644 --- a/apps/gzen/layouts/partials/extend-head-uncached.html +++ b/apps/gzen/layouts/partials/extend-head-uncached.html @@ -7,6 +7,6 @@ {{ end }} {{ end }} {{ if not $featureImage }} - - + + {{ end }} diff --git a/apps/gzen/layouts/partials/extend-head.html b/apps/gzen/layouts/partials/extend-head.html index 8ff091e..61ef9ad 100644 --- a/apps/gzen/layouts/partials/extend-head.html +++ b/apps/gzen/layouts/partials/extend-head.html @@ -1,4 +1,6 @@ {{/* Typography — JetBrains Mono for code/tech headings */}} - - - + + + diff --git a/apps/gzen/layouts/partials/footer.html b/apps/gzen/layouts/partials/footer.html index 4e0fe83..52274a9 100644 --- a/apps/gzen/layouts/partials/footer.html +++ b/apps/gzen/layouts/partials/footer.html @@ -16,16 +16,36 @@ @@ -36,14 +56,20 @@

{{ i18n "nav_origin" | default "Connect" }}

| Crafted in Go. | - Build: {{ now.Format "2006-01-02" }} + Build: + {{ now.Format "2006-01-02" }}

diff --git a/apps/gzen/layouts/partials/header/basic.html b/apps/gzen/layouts/partials/header/basic.html index 693a3b5..2d0a5fb 100644 --- a/apps/gzen/layouts/partials/header/basic.html +++ b/apps/gzen/layouts/partials/header/basic.html @@ -13,6 +13,8 @@ {{ i18n "nav_resources" | default "Resources" }} {{ i18n "nav_playground" | default "Playground" }} {{ i18n "nav_about" | default "About" }} - {{ i18n "nav_donate" | default "Donate" }} + {{ i18n "nav_donate" | default "Donate" }} diff --git a/apps/gzen/layouts/partials/home/custom.html b/apps/gzen/layouts/partials/home/custom.html index bc52462..91590bd 100644 --- a/apps/gzen/layouts/partials/home/custom.html +++ b/apps/gzen/layouts/partials/home/custom.html @@ -1,17 +1,20 @@ {{/* GZen.io — humble landing page */}} +

{{ .Site.Language.Params.heroKicker | default "Go (Golang)" }}

-

{{ .Site.Language.Params.heroTitle | default "Learning in public." }}

-

{{ .Site.Language.Params.heroLead | default "A small space for Go articles, patterns, and honest notes from someone still figuring it out." }}

+

+ {{ .Site.Language.Params.heroTitle | default "Learning in public." }} +

+

+ {{ .Site.Language.Params.heroLead | default "A small space for Go articles, patterns, and honest notes from someone still figuring it out." }} +

@@ -25,23 +28,24 @@

{{ .Site.Language.Params.heroTitle | default "Learning
// still learning -
+
package main -
-
+
+
import "fmt" -
-
+
+
func main() { -
+
fmt.Println( -
- "Go Beyond. Build Better." -
+
+ "Go Beyond. Build Better." +
) -
+
} -
+
|
@@ -49,25 +53,24 @@

{{ .Site.Language.Params.heroTitle | default "Learning

- {{/* Simple tagline */}}
// one article at a time -
-
+
+
func learn() { -
+
for { -
+
read() -
+
break() -
+
write() -
+
} -
+
}
@@ -76,16 +79,21 @@

{{ .Site.Language.Params.heroTitle | default "Learning

Recent Posts

- All posts → + All posts →
@@ -121,10 +129,15 @@

Cloud & deploy

Enjoying the articles?

If something here helped you learn Go, a coffee would make my day. No pressure.

- From 68dcab5f7a9d0672a64a597043e733b273b63ad8 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:58:16 +0000 Subject: [PATCH 3/4] fix(ci): fix deprecated language keys for Hugo 0.162+ Replaced deprecated `languageCode` configurations with `locale = "en"`, replaced `languageName` configurations with `label`, replaced `.Site.Data` with `site.Data`, and updated `.Language.LanguageName` variables to `.Language.Label` across the codebase in `apps/gzen-learn`, `apps/gzen-invest`, `apps/gzen-ki`, and `apps/gzen` to resolve Hugo v0.162.1+ CI build failures. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com> --- apps/gzen-invest/hugo.toml | 2 +- apps/gzen-ki/config/_default/hugo.toml | 2 +- apps/gzen-ki/config/_default/languages.zh-cn.toml | 4 ++-- apps/gzen-ki/layouts/gallery/list.html | 4 ++-- .../gzen-ki/themes/blowfish/config/_default/languages.en.toml | 4 ++-- apps/gzen-ki/themes/blowfish/layouts/_default/baseof.html | 2 +- apps/gzen-ki/themes/blowfish/layouts/_default/rss.xml | 2 +- apps/gzen-ki/themes/blowfish/layouts/_default/sitemap.xml | 4 ++-- apps/gzen-ki/themes/blowfish/layouts/partials/head.html | 2 +- apps/gzen-ki/themes/blowfish/layouts/partials/schema.html | 4 ++-- apps/gzen-ki/themes/blowfish/layouts/shortcodes/codeberg.html | 2 +- apps/gzen-ki/themes/blowfish/layouts/shortcodes/forgejo.html | 2 +- apps/gzen-ki/themes/blowfish/layouts/shortcodes/gitea.html | 2 +- apps/gzen-ki/themes/blowfish/layouts/shortcodes/github.html | 2 +- apps/gzen-ki/themes/gzen/layouts/gallery/list.html | 2 +- apps/gzen-learn/hugo.toml | 2 +- apps/gzen/themes/blowfish/config/_default/languages.en.toml | 4 ++-- apps/gzen/themes/blowfish/layouts/_default/single.html | 2 +- apps/gzen/themes/blowfish/layouts/partials/contributors.html | 2 +- apps/gzen/themes/blowfish/layouts/partials/sharing-links.html | 2 +- apps/gzen/themes/blowfish/layouts/partials/sponsors.html | 2 +- apps/gzen/themes/blowfish/layouts/partials/vendor.html | 2 +- apps/gzen/themes/blowfish/layouts/shortcodes/codeberg.html | 2 +- apps/gzen/themes/blowfish/layouts/shortcodes/forgejo.html | 2 +- apps/gzen/themes/blowfish/layouts/shortcodes/gitea.html | 2 +- apps/gzen/themes/blowfish/layouts/shortcodes/github.html | 2 +- 26 files changed, 32 insertions(+), 32 deletions(-) diff --git a/apps/gzen-invest/hugo.toml b/apps/gzen-invest/hugo.toml index 596603b..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" +locale = "en" title = "invest.gzen" enableRobotsTXT = true 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 @@

{{ . {{/* Herb grid */}}