Skip to content

Add Open Graph + Twitter Card social preview - #184

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

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

Conversation

@astra-intelligence

Copy link
Copy Markdown

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 from one-html-page-logo.png via make-social-preview.py (reproducible, no machine paths, fonts via OHPC_FONT_DIR or 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.

- 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

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.

2 participants