Repository navigation
feat: add Open Graph and Twitter Card social preview tags - #593
astra-intelligence wants to merge 1 commit into
Conversation
Wire the existing public/opengraph-image.png (1200x630) into proper og:/twitter: meta tags so shared links render a rich preview card instead of a bare URL. The asset already shipped in public/ but was never referenced in the head.
|
✅ Deploy Preview for eslint-code-explorer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Thanks for the PR, but we don’t accept AI-generated PRs without an accepted issue. Please review our AI usage policy: https://eslint.org/docs/latest/contribute/ai-policy#pull-request-acceptance-criteria |
Summary
This PR adds proper Open Graph and Twitter Card social preview tags to the ESLint Code Explorer site.
The repo already ships a clean 1200×630
public/opengraph-image.png, but it was never referenced in the head — so every link toexplorer.eslint.orgshared on X/Twitter, LinkedIn, Slack, Discord, or iMessage rendered as a bare URL with no preview card.What's included:
og:type,og:site_name,og:title,og:description,og:url,og:image(+og:image:type/width/height)summary_large_imagewith matchingtwitter:title/twitter:description/twitter:imagepublic/opengraph-image.png(already deployed at/opengraph-image.png) — no new assets, no build changesVerification: the image is already served at
https://explorer.eslint.org/opengraph-image.png(HTTP 200), so the tags take effect immediately on deploy.This is a small, self-contained change (1 file, +20 lines) that makes every shared link render a proper branded preview card.
Summary by CodeRabbit