mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-19 15:15:18 +00:00
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:
@@ -8,7 +8,8 @@
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"generate:llms": "node ../../scripts/generate-llms.astro-site.mjs",
|
||||
"build": "pnpm run generate:llms && astro build && pagefind --site dist",
|
||||
"generate:og": "node ../../scripts/generate-og-images.astro-site.mjs",
|
||||
"build": "pnpm run generate:llms && pnpm run generate:og && astro build && pagefind --site dist",
|
||||
"preview": "astro preview",
|
||||
"check": "astro check",
|
||||
"astro": "astro"
|
||||
|
||||
Reference in New Issue
Block a user