Add social preview image for OG/Twitter cards#230
Merged
Conversation
✅ Deploy Preview for jade-cajeta-1bcca0 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Add a 1200x630 branded social card (scverse® wordmark + tagline) and set it as the default site image so shared links render a proper preview instead of a bare text card. Pages without their own image fall back to it. Closes #91 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1c85737 to
cc98844
Compare
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.
Closes #91.
Shared links currently render a bare social card with no image. This adds a 1200×630 branded card (scverse logo + tagline on white) and sets it as the site's default
imagesinconfig.toml, so Hugo's Open Graph and Twitter Card templates emitog:image/twitter:imageand use thesummary_large_imagecard type.static/img/scverse-social-card.png(1200×630, the standard social-card ratio).imagesfall back to this default; posts can still override per-page.Verified with a local Hugo build: homepage and image-less posts emit the card as
og:image+twitter:imagewithtwitter:card=summary_large_image.