feat(seo): per-tool Open Graph images - #112
Merged
Merged
Conversation
- scripts/generate-og.mjs renders a 1200x630 branded PNG per tool (category- colored band + chip, Space Grotesk name, summary, wordmark) at build time via prebuild → public/og/<id>.png; [tool].astro points og:image/twitter:image at it. - Generated (not committed): public/og gitignored; regenerated each build. - Excluded from the SW precache (og/*.png globIgnore) so 2.4 MB of social images don't bloat the PWA. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ubfx4XocHcECaL8twp9zsr
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
goodwebtools | 125ad15 | Aug 01 2026, 07:22 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generates a unique branded 1200×630 OG image per tool at build time (satori → resvg), so shared links show the specific tool instead of one generic image.
scripts/generate-og.mjsruns inprebuild; images land inpublic/og/<id>.pngand are gitignored (regenerated every build, incl. on Cloudflare).[tool].astrosetsog:image/twitter:imageto the per-tool PNG.Verify
npm run build→ prebuild generated 75 images;dist/og/has 75; og:image tags point per-tool; precache excludes them; 94 pages; 0 lint errors.