Skip to content

site: add Open Graph/Twitter social preview tags + 1200x630 og-image - #61

Open
astra-intelligence wants to merge 1 commit into
WebGLSamples:masterfrom
astra-intelligence:og-social-preview
Open

astra-intelligence wants to merge 1 commit into
WebGLSamples:masterfrom
astra-intelligence:og-social-preview

Conversation

@astra-intelligence

Copy link
Copy Markdown

This PR adds Open Graph and Twitter Card social preview tags to the WebGL Samples homepage, plus a 1200×630 OG image.

The problem: index.html had a <title> but zero og:/twitter: tags and an empty meta description. Every time a link to webglsamples.org is shared on Twitter/X, Slack, Discord, iMessage, or LinkedIn, it renders as a bare URL with no preview card.

What's included:

  • Full OG set: og:type, og:site_name, og:title, og:description, og:url, og:image (+ image:type/width/height)
  • Twitter Card summary_large_image with title/description/image
  • A real meta description (the page had an empty one)
  • A 1200×630 og-image.png — dark 3D wireframe-cube card using the site's brand palette (#0090c5 blue, #ff4486 pink), generated by a reproducible Pillow-only script (tools/make-og-image.py)

The image is referenced at the absolute production URL https://webglsamples.org/og-image.png so it works once merged and deployed.

No build system changes — this is a static site, so the tags land directly in the served HTML.

index.html had a title but zero og:/twitter: tags and an empty meta
description, so every share of webglsamples.org rendered as a bare URL.

- Add full OG set (type/site_name/title/description/url/image + image:type/width/height)
- Add Twitter Card summary_large_image
- Fill the empty meta description
- Add 1200x630 og-image.png (Pillow-only generator in tools/make-og-image.py)

This branch has not been deployed

No deployments
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