fix: add Twitter Card meta tags and correct og:image path #302 - #303
Merged
mugenkyou merged 1 commit intoJul 14, 2026
Merged
Conversation
📥 Pull Request ReceivedThank you for your contribution to College Daddy. Your pull request has been received and is currently under review. 🔗 Linked Issues
✅ Pre-Merge ChecklistPlease ensure the following requirements are met:
👤 Reviewer Assigned@mugenkyou has been assigned to review this pull request. Our team will review your submission shortly. We appreciate your effort in improving the platform for students. |
🎉 Pull Request Merged SuccessfullyContributor: @Haripriyagupta Your pull request has been successfully merged into the main codebase. Thank you for your valuable contribution to College Daddy. 🚀 Next StepsWe encourage you to:
We value your commitment to improving educational technology and look forward to your continued involvement. |
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.
Fixes #302
Pull Request Summary
This PR improves social media sharing support by adding missing Twitter Card metadata and correcting the Open Graph image path used for link previews.
Previously, Twitter/X could not generate rich previews because Twitter-specific meta tags were absent. Additionally, the configured Open Graph image referenced a non-existent file, causing social preview images to fail.
Changes Introduced
Added Twitter Card meta tags:
twitter:cardtwitter:titletwitter:descriptiontwitter:imageCorrected the
og:imagepath fromimages/college-daddy-logo.pngto the existing assetassets/img/college-daddy-og.png.Added
og:image:widthandog:image:heightmetadata to improve preview rendering across social platforms.Kept Open Graph and Twitter metadata consistent for better sharing behavior.
Problem
og:imagepointed toimages/college-daddy-logo.png, which does not exist in the repository.Fix
og:imageto use the existing image asset:assets/img/college-daddy-og.png.Checklist
assets/img/college-daddy-og.png.Additional Notes
The repository already contains
assets/img/college-daddy-og.png, which is specifically intended for Open Graph/social sharing usage. This PR aligns both Open Graph and Twitter Card metadata with the existing project assets, ensuring consistent and reliable link previews across platforms.