fix: address Lighthouse SEO and performance audit failures

- nav: fix label-content-name-mismatch — aria-label now uses logoText
  ("PIVOINE") to match the visible link text (WCAG 2.5.3)
- index: improve link-text — "Learn more" → "About the magazine"
  so the /about/ CTA has a descriptive accessible name
- head: load Google Fonts async via media=print/onload pattern to
  eliminate render-blocking resource penalty (~480ms est. savings)

Remaining items needing server-side action:
- is-crawlable: x-robots-tag: none,... header must be removed in the
  web server / CDN config (not controllable from this repo)
- image-delivery: large banner PNGs on live site need manual WebP
  conversion or migration to Hugo page bundles for auto-processing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-10 19:07:10 +02:00
parent 3b8e1f7a1f
commit 9af45979f1
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -137,7 +137,7 @@
<p class="font-display text-3xl md:text-5xl text-paper leading-tight text-balance mb-10"> <p class="font-display text-3xl md:text-5xl text-paper leading-tight text-balance mb-10">
{{ .Site.Params.description }} {{ .Site.Params.description }}
</p> </p>
<a href="/about/" class="btn btn-outline">Learn more {{ partial "icon.html" "arrow-right" }}</a> <a href="/about/" class="btn btn-outline">About the magazine {{ partial "icon.html" "arrow-right" }}</a>
</div> </div>
</section> </section>
+4 -2
View File
@@ -57,10 +57,12 @@
<!-- JSON-LD structured data --> <!-- JSON-LD structured data -->
{{- partial "schema.html" . -}} {{- partial "schema.html" . -}}
<!-- Fonts — Bebas Neue + Barlow + Share Tech Mono --> <!-- Fonts — Bebas Neue + Barlow + Share Tech Mono (non-render-blocking) -->
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap"> <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap" media="print" onload="this.media='all'">
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap"></noscript>
<!-- CSS via Hugo Pipes + PostCSS + Tailwind v4 --> <!-- CSS via Hugo Pipes + PostCSS + Tailwind v4 -->
{{- $css := resources.Get "css/main.css" | css.PostCSS -}} {{- $css := resources.Get "css/main.css" | css.PostCSS -}}
+1 -1
View File
@@ -10,7 +10,7 @@
:class="$store.nav.open || scrolled ? 'bg-ink/95 backdrop-blur-md shadow-[0_1px_0_var(--color-zinc)]' : ''" :class="$store.nav.open || scrolled ? 'bg-ink/95 backdrop-blur-md shadow-[0_1px_0_var(--color-zinc)]' : ''"
> >
<!-- Logotype --> <!-- Logotype -->
<a href="/" class="logo-glitch flex items-center gap-3 hover:opacity-90 transition-opacity" aria-label="{{ .Site.Title }} Home"> <a href="/" class="logo-glitch flex items-center gap-3 hover:opacity-90 transition-opacity" aria-label="{{ .Site.Params.logoText }} Home">
{{- partial "logo.html" (dict "id" "nav" "class" "h-8 w-auto flex-shrink-0") -}} {{- partial "logo.html" (dict "id" "nav" "class" "h-8 w-auto flex-shrink-0") -}}
<span class="text-gradient font-display text-2xl md:text-3xl leading-none tracking-wide"> <span class="text-gradient font-display text-2xl md:text-3xl leading-none tracking-wide">
{{- .Site.Params.logoText -}} {{- .Site.Params.logoText -}}