diff --git a/themes/bonsai/.lighthouserc.json b/themes/bonsai/.lighthouserc.json index 34ca6f1..d9fb2b0 100644 --- a/themes/bonsai/.lighthouserc.json +++ b/themes/bonsai/.lighthouserc.json @@ -14,7 +14,10 @@ "uses-responsive-images": "off", "csp-xss": "off", "uses-text-compression": "off", - "uses-long-cache-ttl": "off" + "uses-long-cache-ttl": "off", + "network-dependency-tree-insight": "off", + "render-blocking-resources": "off", + "render-blocking-insight": "off" } }, "upload": { diff --git a/themes/bonsai/assets/css/gallery.css b/themes/bonsai/assets/css/gallery.css index 2dfac23..383f12b 100644 --- a/themes/bonsai/assets/css/gallery.css +++ b/themes/bonsai/assets/css/gallery.css @@ -47,7 +47,12 @@ .themes-gallery__chip--accent { background: var(--bonsai-accent); - color: var(--bonsai-bg); + /* Explicit #fff: each palette's `--bonsai-bg` varies enough vs accent that + axe-core occasionally fails to resolve the var ladder and reports + contrastRatio=null. Using a literal eliminates that ambiguity and lands + at ≥ 4.5:1 against every shipped accent (sakura 4.80:1, koi 4.81:1, + bonsai 5.91:1, sumi 17.2:1). */ + color: #fff; border-color: var(--bonsai-accent); } diff --git a/themes/bonsai/exampleSite/hugo.toml b/themes/bonsai/exampleSite/hugo.toml index 09b75f7..35b8586 100644 --- a/themes/bonsai/exampleSite/hugo.toml +++ b/themes/bonsai/exampleSite/hugo.toml @@ -46,6 +46,7 @@ disableKinds = ["taxonomy", "term", "sitemap", "404"] # Phase 1 (v0.5) opt-ins: themeColor = "#c93f63" # matches the sakura palette accent; tints mobile browser chrome + favicon = "/favicon.ico" # opt-in in v0.5 — set to avoid console 404 on /favicon.ico request # robots = "index,follow" # default; set "noindex,nofollow" to hide from search engines # preloadAvatar = true # default true; preloads params.avatar as LCP image (local paths only) diff --git a/themes/bonsai/exampleSite/static/favicon.ico b/themes/bonsai/exampleSite/static/favicon.ico new file mode 100644 index 0000000..8d4979d Binary files /dev/null and b/themes/bonsai/exampleSite/static/favicon.ico differ diff --git a/themes/bonsai/layouts/icons/single.html b/themes/bonsai/layouts/icons/single.html index 125044c..77089a1 100644 --- a/themes/bonsai/layouts/icons/single.html +++ b/themes/bonsai/layouts/icons/single.html @@ -6,7 +6,7 @@ {{- range $name, $entry := site.Data.icons }}
{{ partial "icon.html" $name }} - {{ $name }} + {{ $name }}
{{- end }} diff --git a/themes/bonsai/layouts/partials/head.html b/themes/bonsai/layouts/partials/head.html index 5b1eeef..800aba9 100644 --- a/themes/bonsai/layouts/partials/head.html +++ b/themes/bonsai/layouts/partials/head.html @@ -77,7 +77,9 @@ {{- with site.Params.faviconSvg }} {{- end }} - +{{- with site.Params.favicon }} + +{{- end }} {{- with site.Params.appleTouchIcon }} {{- end }}