Skip to content

feat(seo): add route-specific JSON-LD, auto-stamp sitemap, and optimize OG image - #24

Merged
JohnBendfeldt merged 1 commit into
mainfrom
feat/seo-structured-data-and-assets
Nov 24, 2026
Merged

JohnBendfeldt merged 1 commit into
mainfrom
feat/seo-structured-data-and-assets

Conversation

@JohnBendfeldt

Copy link
Copy Markdown
Owner

Summary

  • Route-Specific Structured Data (scripts/generate-seo-routes.mjs): Enriches all 105 generated static SEO routes with route-specific BreadcrumbList, WebPage / AboutPage, and per-language Course JSON-LD entities linked to https://johnbendfeldt.com/#person.
  • Fresh Sitemap <lastmod> (public/sitemap.xml, scripts/generate-seo-routes.mjs): Bumped public/sitemap.xml to 2026-11-24 and automatically stamps dist/sitemap.xml with the build date on every deploy without dirtying git.
  • OG Image Optimization (public/og-image.png, index.html, scripts/render-og-image.js): Downsampled og-image.png from 2400x1260 (1.73 MB) to 1200x630 (510 KB, 70% smaller) with LANCZOS filtering and synced og:image:width/height tags.
  • Tests (src/__tests__/seoAudit.test.ts): Added unit tests verifying buildRouteJsonLd for /about and /learn/es/alphabet plus OG image size guardrails.

Verification

  • npx tsc --noEmit: clean.
  • npx vitest run src/__tests__/seoAudit.test.ts: 7/7 tests passed.
  • npm run build: clean production build, 15 offline audio packs, 105 static SEO routes with validated JSON-LD, and stamped dist/sitemap.xml.

@JohnBendfeldt
JohnBendfeldt merged commit d557ad8 into main Nov 24, 2026
4 checks passed
@JohnBendfeldt
JohnBendfeldt deleted the feat/seo-structured-data-and-assets branch November 24, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant