Skip to content

fix: add Twitter Card meta tags and correct og:image path #302 - #303

Merged
mugenkyou merged 1 commit into
mugenkyou:mainfrom
Haripriyagupta:fix-twitter-card-og-image-path
Jul 14, 2026
Merged

fix: add Twitter Card meta tags and correct og:image path #302#303
mugenkyou merged 1 commit into
mugenkyou:mainfrom
Haripriyagupta:fix-twitter-card-og-image-path

Conversation

@Haripriyagupta

Copy link
Copy Markdown
Contributor

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:card
    • twitter:title
    • twitter:description
    • twitter:image
  • Corrected the og:image path from images/college-daddy-logo.png to the existing asset assets/img/college-daddy-og.png.

  • Added og:image:width and og:image:height metadata to improve preview rendering across social platforms.

  • Kept Open Graph and Twitter metadata consistent for better sharing behavior.


Problem

  • Twitter Card meta tags were completely missing, preventing proper link previews on Twitter/X.
  • The existing og:image pointed to images/college-daddy-logo.png, which does not exist in the repository.
  • As a result, social media platforms relying on Open Graph metadata could fail to display the intended preview image.

Fix

  • Added the required Twitter Card meta tags.
  • Updated og:image to use the existing image asset: assets/img/college-daddy-og.png.
  • Added image dimension metadata for improved compatibility with social media preview generators.

Checklist

  • Code follows project conventions and best practices.
  • Verified the image asset exists at assets/img/college-daddy-og.png.
  • No existing functionality affected.
  • No new console errors introduced.
  • Documentation update not required.

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.

@github-actions github-actions Bot added awaiting review bug Something isn't working nsoc26 labels Jun 14, 2026
@github-actions

Copy link
Copy Markdown

📥 Pull Request Received

Thank you for your contribution to College Daddy. Your pull request has been received and is currently under review.

🔗 Linked Issues

✅ Pre-Merge Checklist

Please ensure the following requirements are met:

  • Changes adhere to contribution guidelines
  • Related issues are referenced in description
  • All changes tested and verified locally
  • Code follows project standards

👤 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.

@github-actions
github-actions Bot requested a review from mugenkyou June 14, 2026 12:01
@mugenkyou mugenkyou added the level-2 Intermediate issue; moderate JS or UI work, needs some project understanding. label Jul 14, 2026
@mugenkyou
mugenkyou merged commit d0a1eb2 into mugenkyou:main Jul 14, 2026
1 of 2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Pull Request Merged Successfully

Contributor: @Haripriyagupta

Your pull request has been successfully merged into the main codebase. Thank you for your valuable contribution to College Daddy.

🚀 Next Steps

We encourage you to:

  • ⭐ Star the repository to support the project
  • 👀 Watch for updates and participate in discussions
  • 🔄 Continue contributing to enhance the platform

We value your commitment to improving educational technology and look forward to your continued involvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working level-2 Intermediate issue; moderate JS or UI work, needs some project understanding. nsoc26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Missing Twitter Card meta tags and broken og:image path

2 participants