Skip to content

Add social sharing previews (Open Graph + Twitter cards)#44

Merged
Marv51 merged 2 commits into
mainfrom
add-social-previews
Jul 11, 2026
Merged

Add social sharing previews (Open Graph + Twitter cards)#44
Marv51 merged 2 commits into
mainfrom
add-social-previews

Conversation

@Marv51

@Marv51 Marv51 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Sharing ruehe.me (LinkedIn, Slack, X, iMessage, …) currently shows a bare URL with no preview. This adds Open Graph and Twitter card meta so links render a proper preview card.

Changes

  • og:* and twitter:* tags added to both home routes (home.tsx, home-de.tsx): title, description, url, type, site_name, locale (+ alternate), and a summary_large_image Twitter card.
  • A branded 1200×630 card per language (name, role, avatar on the accent-purple background), served as a static asset (og.jpg / og-de.jpg). The German card uses the German role and the DE tags point at /de with og:locale de_DE.

Verification

Built the site and confirmed the prerendered index.html and de/index.html contain the full tag set with the correct per-language og:url, og:locale, and og:image, and that both card images are emitted into build/client. Typecheck passes.

Note: the images were generated with macOS sips, so the name renders in Georgia rather than the site's Fraunces (Fraunces isn't available to the rasterizer) — consistent with how the favicon was produced.

🤖 Generated with Claude Code

Marv51 and others added 2 commits July 11, 2026 22:34
Shared links (LinkedIn, Slack, X, etc.) now render a preview card
instead of a bare URL. Add og:* and twitter:* tags to both the English
and German home routes, each pointing at a branded 1200x630 card
(name, role, avatar) served as a static asset.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Regenerate both social cards with resvg using the actual Fraunces
display serif (opsz 144, wght 600, WONK 1) instead of the Georgia
fallback, matching the site hero. Localize the DE card's location line
to "Freiburg, Deutschland".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Marv51
Marv51 merged commit 2e0edf0 into main Jul 11, 2026
2 checks passed
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.

1 participant