Commit 074f2a3
committed
fix(library): generate every post cover from one template
Three posts shipped an `ogImage` pointing at a file that was never
committed, so the library index rendered broken images and their
`og:image`, JSON-LD, and sitemap entries all 404'd. Several others were
authored without the brand font loaded or with the title clipping off the
bottom edge.
Covers were hand-made per post with no generator, which is why they
drifted. Adds `bun run library:covers`, rendering each cover from the
post's frontmatter title using the reference template already encoded in
the docs OG route, and regenerates all 20 so the grid is uniform.
Line widths come from the font's real advance metrics rather than an
average-glyph-width estimate: the template joins words with non-breaking
spaces to dodge a Satori space-measurement bug, which leaves hyphens as
the only fallback break points, so an under-measured line breaks
mid-compound.
Also drops six orphaned `cover.png` sources left over from the JPEG
compression pass in #5528.1 parent 54c3e1c commit 074f2a3
30 files changed
Lines changed: 286 additions & 10 deletions
File tree
- apps/sim/public/library
- ai-agent-ideas
- ai-agent-observability
- ai-agent-vs-chatbot
- ai-agents-in-procurement
- ai-agents-vs-rpa
- apache-2-0-vs-fair-code
- best-ai-agent-platforms-2026
- best-ai-agents-for-customer-support-automation
- best-ai-agents-for-data-extraction-and-rag-in-2026
- best-ai-agents-sales-crm-automation
- best-relay-app-alternatives-2026
- best-zapier-alternatives
- byok-multi-model-ai-agent-builder
- how-to-create-an-ai-agent
- langgraph-alternatives
- mcp-security
- n8n-alternatives
- open-source-ai-agent-platforms
- openai-vs-n8n-vs-sim
- what-is-an-mcp-server
- scripts
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
0 commit comments