Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion apps/gzen-invest/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = "https://invest.gzen.dev/"
languageCode = "en-us"
locale = "en"
title = "invest.gzen"
enableRobotsTXT = true

Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/.github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Deployed via **Cloudflare Pages** (not GitHub Actions).

```html
<!-- Iterate over site data -->
{{ range .Site.Data.herbs }}
{{ range site.Data.herbs }}
{{ .name_zh }} — {{ .pinyin }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/config/_default/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = "https://genki.gzen.io/"
languageCode = "zh-CN"
locale = "zh-CN"
defaultContentLanguage = "zh-cn"
title = "元気・健康笔记"
theme = "blowfish"
Expand Down
4 changes: 2 additions & 2 deletions apps/gzen-ki/config/_default/languages.zh-cn.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
disabled = false
languageCode = "zh-CN"
languageName = "中文"
locale = "zh-CN"
label = "中文"
weight = 1
title = "元気・健康笔记"

Expand Down
4 changes: 2 additions & 2 deletions apps/gzen-ki/layouts/gallery/list.html
Original file line number Diff line number Diff line change
@@ -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" }}
Expand Down Expand Up @@ -32,7 +32,7 @@ <h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .

{{/* Herb grid */}}
<div class="herb-gallery-grid" id="herb-gallery">
{{ range .Site.Data.herbs }}
{{ range site.Data.herbs }}
<div class="herb-card" data-category="{{ .category }}">
<div class="herb-stripe {{ .nature }}"></div>
<div class="herb-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
disabled = false
languageCode = "en"
languageName = "English"
locale = "en"
label = "English"
weight = 1
title = "Blowfish"

Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/themes/blowfish/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!doctype html>
<html
lang="{{ with site.Params.isoCode | default (site.LanguageCode | default `en`) }}{{- . -}}{{ end }}"
lang="{{ with site.Params.isoCode | default (site.Language.Label | default `en`) }}{{- . -}}{{ end }}"
dir="{{ cond (site.Params.rtl | default false) `rtl` `ltr` }}"
class="scroll-smooth"
data-default-appearance="{{ site.Params.defaultAppearance | default `light` }}"
Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/themes/blowfish/layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
<language>{{ site.LanguageCode }}</language>{{ with .Site.Params.Author.email }}
<language>{{ site.Language.Label }}</language>{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
{{ if .Site.Params.footer.showCopyright | default true -}}
Expand Down
4 changes: 2 additions & 2 deletions apps/gzen-ki/themes/blowfish/layouts/_default/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.LanguageCode }}"
hreflang="{{ .Language.Label }}"
href="{{ .Permalink }}"
/>{{ end }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.LanguageCode }}"
hreflang="{{ .Language.Label }}"
href="{{ $link }}"
/>{{ end }}
</url>
Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/themes/blowfish/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<head>
<meta charset="utf-8">
{{ with .Site.Language.Params.htmlCode | default .Site.LanguageCode }}
{{ with .Site.Language.Params.htmlCode | default .Site.Language.Label }}
<meta http-equiv="content-language" content="{{ . }}">
{{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
4 changes: 2 additions & 2 deletions apps/gzen-ki/themes/blowfish/layouts/partials/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.Label }}"inLanguage": "{{ . }}",{{ end }}
"url": {{ site.Home.Permalink | safeURL }},
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
"publisher" : {
Expand All @@ -25,7 +25,7 @@
"name": "{{ .Title | safeJS }}",
"headline": "{{ .Title | safeJS }}",
{{ with .Description }}"description": "{{ . | safeJS }}",{{ end }}
{{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }}
{{ with .Site.Language.Label }}"inLanguage": "{{ . }}",{{ end }}
"url" : {{ .Permalink }},
"author" : {
"@type": "Person",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $id := delimit (slice "codeberg" (partial "functions/uid.html" .)) "-" }}
{{- $codebergURL := print "https://codeberg.org/api/v1/repos/" (.Get "repo") -}}
{{- $repoColors := .Site.Data.repoColors -}}
{{- $repoColors := site.Data.repoColors -}}
{{- $codebergData := dict -}}
{{- with try (resources.GetRemote $codebergURL) -}}
{{- with .Err -}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $id := delimit (slice "forgejo" (partial "functions/uid.html" .)) "-" }}
{{- $forgejoURL := print (.Get "server" | default .Site.Params.forgejoDefaultServer) "/api/v1/repos/" (.Get "repo") -}}
{{- $repoColors := .Site.Data.repoColors -}}
{{- $repoColors := site.Data.repoColors -}}
{{- $forgejoData := dict -}}
{{- with try (resources.GetRemote $forgejoURL) -}}
{{- with .Err -}}
Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/themes/blowfish/layouts/shortcodes/gitea.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $id := delimit (slice "gitea" (partial "functions/uid.html" .)) "-" }}
{{- $giteaURL := print (.Get "server" | default .Site.Params.giteaDefaultServer) "/api/v1/repos/" (.Get "repo") -}}
{{- $repoColors := .Site.Data.repoColors -}}
{{- $repoColors := site.Data.repoColors -}}
{{- $giteaData := dict -}}
{{- with try (resources.GetRemote $giteaURL) -}}
{{- with .Err -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}}
{{- $githubThumbnailURL := print "https://opengraph.githubassets.com/0/" (.Get "repo") -}}
{{- $showThumbnail := .Get "showThumbnail" | default true -}}
{{- $repoColors := .Site.Data.repoColors -}}
{{- $repoColors := site.Data.repoColors -}}
{{- $githubData := dict -}}
{{- with try (resources.GetRemote $githubURL) -}}
{{- with .Err -}}
Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-ki/themes/gzen/layouts/gallery/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>{{ .Title }}</h1>
</div>

<div class="gallery-grid" id="herb-gallery">
{{ range .Site.Data.herbs }}
{{ range site.Data.herbs }}
<div class="herb-card" data-category="{{ .category }}">
<div class="herb-card-stripe {{ .nature }}"></div>
<div class="herb-card-body">
Expand Down
2 changes: 1 addition & 1 deletion apps/gzen-learn/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = 'https://learn.gzen.io/'
languageCode = 'en-us'
locale = 'en'
title = 'GZen — Japanese, Korean & Russian Language Learning'

[params]
Expand Down
Loading