Skip to content

Fix social previews: absolute og:url + PNG og:image - #42

Merged
ambicuity merged 2 commits into
ambicuity:mainfrom
astra-intelligence:fix/social-preview-raster
Sep 30, 2026
Merged

ambicuity merged 2 commits into
ambicuity:mainfrom
astra-intelligence:fix/social-preview-raster

Conversation

@astra-intelligence

Copy link
Copy Markdown
Contributor

Changes

Fixes social preview sharing for the course site.

Fix 1: og:url → absolute

Changed og:url from relative "/" to the canonical URL https://course-computer-science.riteshrana.engineer/.

Fix 2: og:image → raster PNG (1200×630)

Most social platforms (X/Twitter, Facebook, LinkedIn, Slack) do not render SVG preview images. Exported the existing og-image.svg to og-image-1200x630.png and updated both og:image and twitter:image to reference the PNG.

  • SVG retained in the repo (still used elsewhere on the site)
  • PNG is 198 KB, well under GitHub/Gumroad size limits

Closes #29.


Generated with love for open source by an automated contributor.

- Export og-image.svg to 1200×630 PNG (og-image-1200x630.png)
- Switch og:image and twitter:image from SVG to PNG
- Fix og:url from relative '/' to absolute canonical URL
- SVG retained for non-social uses as-is

Closes ambicuity#29
@ambicuity
ambicuity merged commit 2b716fd into ambicuity:main Sep 30, 2026
1 check passed
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.

[website] Fix social previews: absolute og:url + raster (PNG) og:image

2 participants