Add OG image auto-generation for writings, portfolio, and bookshelf

Replaces the legacy Zola script, which was hard-coded to the retired
"CASE FILE" branding, with scripts/generate-og-images.astro-site.mjs
built on the new design system's dark palette + Fraunces/JetBrains Mono.
Base.astro now renders og:image/twitter:image from a per-page ogImage
prop, wired into the writings and bookshelf detail pages.

Uses static-weight Fraunces/Newsreader font packages rather than the
variable fonts the site ships elsewhere, since satori's opentype.js
parser throws on their fvar table.
This commit is contained in:
2026-09-01 08:59:42 +03:00
parent 9ee9795645
commit c035aca132
32 changed files with 410 additions and 11 deletions
+2
View File
@@ -16,6 +16,8 @@
},
"devDependencies": {
"@biomejs/biome": "^2.5.11",
"@fontsource/fraunces": "^5.3.0",
"@fontsource/newsreader": "^5.3.0",
"@resvg/resvg-js": "^2.6.2",
"concurrently": "^10.0.5",
"satori": "^0.29.0",