mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-18 09:22:53 +00:00
Renders a 1200x630 social card per post (satori + resvg-js, using the site's own self-hosted fonts) instead of reusing one generic og-image.png for every post. Wired into npm run build via a new generate:og step; templates/page.html falls back to the per-slug image unless extra.image is set, and non-post pages keep the generic fallback.
17 lines
436 B
JSON
17 lines
436 B
JSON
{
|
|
"name": "andwati-com",
|
|
"private": true,
|
|
"devDependencies": {
|
|
"@resvg/resvg-js": "^2.6.2",
|
|
"satori": "^0.29.0",
|
|
"wawoff2": "^2.0.1",
|
|
"wrangler": "^4"
|
|
},
|
|
"scripts": {
|
|
"generate:llms": "node scripts/generate-llms.mjs",
|
|
"generate:og": "node scripts/generate-og-images.mjs",
|
|
"build": "npm run generate:llms && npm run generate:og && zola build",
|
|
"deploy": "npm run build && wrangler deploy"
|
|
}
|
|
}
|