Repository navigation
Fix share thumbnail: show full logo (heart + 1) on white - #6
Merged
Merged
Conversation
Link-preview crawlers had no designated share image (no og:image or twitter:image), so they fell back to the preloaded transparent, heart-only /media/LogoHeart.png. Add og:image/twitter:image (plus secure_url, type, dimensions, alt) and og:url pointing to onehook_white_inside-512.png: the full logo (silver heart with navy 1) on a white background. Uses the 512px variant because the 1024px file is removed from the build by leanMediaPrunePlugin.
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.
Summary
Link previews/thumbnails for the site showed just the transparent heart shape (no "1"). Root cause: the Open Graph and Twitter
<meta>blocks had no image tag, so crawlers fell back to the preloaded, transparent, heart-only/media/LogoHeart.png.This adds explicit share-image tags pointing to the full logo — silver heart with the navy "1" inside, on a white background.
Changes (
index.html)og:image(+og:image:secure_url,:type,:width,:height,:alt)twitter:image(+twitter:image:alt)og:urlonehook_white_inside-512.png(full logo on white)Why the 512px variant
vite.config.ts'sleanMediaPrunePlugindeletesonehook_white_inside-1024.pngfrom the build output, so that URL would 404 in production. The 512px file is not pruned and is confirmed to ship indist/media/.Testing
npm run buildsucceeds; tags present in builtdist/index.html;dist/media/onehook_white_inside-512.pngships.Notes