Repository navigation
fix(website): ship the social card the meta tags already promise - #423
Open
IanoNjuguna wants to merge 1 commit into
Open
IanoNjuguna wants to merge 1 commit into
IanoNjuguna wants to merge 1 commit into
Conversation
themeConfig.image named img/docusaurus-social-card.jpg, a default that was never added to static/img, so og:image and twitter:image resolved to a 404 on every page while twitter:card declared summary_large_image. The card is the landing hero rendered at 2x and composed to 1200x630 on its own Caramel Delight surface, with the hero buttons dropped so the card does not look clickable.
This branch has not been deployed
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.
Description
Every page emitted an
og:imageand atwitter:imagepointing at/img/docusaurus-social-card.jpg, a default Docusaurus ships that was never added tostatic/img. The live URL 404s, so every share of the site has been getting thesummary_large_imagelayout with an empty image in it.This renders the hero the site already has, rather than inventing a new card:
#FCE4C6) canvas, which is the hero's own surface colour in both themessummary_large_imageexpectsthemeConfig.imagenow points at the resultTwo files: the PNG (150 KB) and one changed line in
docusaurus.config.ts.Fixes #422.
Type of Change
Testing
Checklist
Verification
Edge pixels checked after composition rather than assumed: both the top-right and bottom-left corners are
rgb(252, 228, 198), so there is no white sliver from the neighbouring section.Notes
image:; the tutorial and the new Beginner page are the two that would benefit most.