Repository navigation
[feat] Add share card and Open Graph metadata - #13
Merged
Merged
Conversation
Renders a 1200x630 card in Chromium with Google Sans via pnpm og, adds og:image, twitter summary_large_image, canonical URL and a fuller description, and refreshes the README screenshots.
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.
What's in this PR
public/og.jpg, 53 KB) for Facebook, X, LinkedIn and chat apps, rendered in Chromium with the site's own Google Sans by a newpnpm ogscriptog:imagewith size and alt text, Xsummary_large_image,@flutter_phas the site handle, a canonical URL and a fuller page descriptionWhy not Next's generated opengraph-image
Next's image renderer (Satori) can't parse an OpenType feature in Google Sans, and swapping to another font would put the card off-brand. A small Chromium render keeps it pixel-identical to the site.
Test Plan
pnpm og, then checked the imagepnpm build: all og:* and twitter:* tags present with absolute https://flutter.ph/og.jpgpnpm test(19 passed),pnpm test:e2e(54 passed)Please attach screenshots or videos demonstrating the changes:
Checklist