Repository navigation
Add Open Graph + Twitter Card social preview - #184
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
- social-preview.png: 1200x630 card reproducing the site's hero (white rounded card with the project logo on the dark diagonal-striped background), generated from the project's own one-html-page-logo.png - index.html: full Open Graph + Twitter Card meta set (type/site_name/ title/description/url/image + dimensions/alt, summary_large_image), absolute URLs against https://onehtmlpagechallenge.com/ - make-social-preview.py: reproducible generator, no machine paths
Abhay557
approved these changes
Oct 16, 2026
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.
When the challenge is shared on social platforms (Discord, HN, Reddit, X), there is currently no preview card — the index only sets
og:title, so most platforms render a bare link.This PR adds a proper social preview:
social-preview.png— 1200x630 card that mirrors the site's hero: the project's own logo on a white rounded card over the dark diagonal-striped background, with the tagline and domain. Generated fromone-html-page-logo.pngviamake-social-preview.py(reproducible, no machine paths, fonts viaOHPC_FONT_DIRor system dirs).index.html— full Open Graph + Twitter Card meta set: title, description, url, image (+ width/height/alt),summary_large_image.After merge, links to the challenge (including every shared entry) will render with the card on most platforms.