Repository navigation
Fix social previews: absolute og:url + PNG og:image - #42
Merged
ambicuity merged 2 commits intoSep 30, 2026
Merged
Conversation
- 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
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.
Changes
Fixes social preview sharing for the course site.
Fix 1: og:url → absolute
Changed
og:urlfrom relative"/"to the canonical URLhttps://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.svgtoog-image-1200x630.pngand updated bothog:imageandtwitter:imageto reference the PNG.Closes #29.
Generated with love for open source by an automated contributor.