Repository navigation
site: add Open Graph/Twitter social preview tags + 1200x630 og-image - #61
Open
astra-intelligence wants to merge 1 commit into
Open
astra-intelligence wants to merge 1 commit into
astra-intelligence wants to merge 1 commit into
Conversation
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
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.
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.htmlhad a<title>but zeroog:/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:
og:type,og:site_name,og:title,og:description,og:url,og:image(+image:type/width/height)summary_large_imagewith title/description/imageog-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.pngso it works once merged and deployed.No build system changes — this is a static site, so the tags land directly in the served HTML.