Skip to content

Add social preview image for OG/Twitter cards#230

Merged
Zethson merged 1 commit into
mainfrom
social-preview-image
Jul 8, 2026
Merged

Add social preview image for OG/Twitter cards#230
Zethson merged 1 commit into
mainfrom
social-preview-image

Conversation

@Zethson

@Zethson Zethson commented Jul 7, 2026

Copy link
Copy Markdown
Member

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 images in config.toml, so Hugo's Open Graph and Twitter Card templates emit og:image / twitter:image and use the summary_large_image card type.

  • New image: static/img/scverse-social-card.png (1200×630, the standard social-card ratio).
  • Pages without their own front-matter images fall back to this default; posts can still override per-page.
  • Replaces the stale commented-out SVG reference (Twitter/OG don't render SVG).

Verified with a local Hugo build: homepage and image-less posts emit the card as og:image + twitter:image with twitter:card=summary_large_image.

@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for jade-cajeta-1bcca0 ready!

Name Link
🔨 Latest commit cc98844
🔍 Latest deploy log https://app.netlify.com/projects/jade-cajeta-1bcca0/deploys/6a4d4c3ba6a47c0008ee7d92
😎 Deploy Preview https://deploy-preview-230--jade-cajeta-1bcca0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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>
@Zethson Zethson force-pushed the social-preview-image branch from 1c85737 to cc98844 Compare July 7, 2026 18:58
@Zethson Zethson requested review from PauBadiaM, gtca and josenimo July 7, 2026 19:00

@PauBadiaM PauBadiaM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Zethson Zethson merged commit 1f37686 into main Jul 8, 2026
6 checks passed
@Zethson Zethson deleted the social-preview-image branch July 8, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Social Previews on twitter aren't pretty

2 participants