feat: Add Open Graph and Twitter Card Meta Tags for Social Media Previews (#487)#496
Open
NEHAJAKATE wants to merge 1 commit into
Open
feat: Add Open Graph and Twitter Card Meta Tags for Social Media Previews (#487)#496NEHAJAKATE wants to merge 1 commit into
NEHAJAKATE wants to merge 1 commit into
Conversation
|
Someone is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Add Open Graph and Twitter Card Meta Tags for Social Media Previews
🎯 Fixes #487
Problem
When users share DevPath URLs on Twitter/X, LinkedIn, Discord, or WhatsApp, the preview is either blank or generic because there are zero Open Graph or Twitter Card meta tags in any template.
Solution
This PR adds comprehensive social media meta tags to all templates, implements SEO best practices with robots.txt and sitemap.xml, and includes full test coverage.
Changes Made
📄 Templates Updated (5 files)
🖼️ Assets Created
🔍 SEO Files Created
🛣️ Routes Added
🧪 Tests Added (18 new tests)
Meta Tags Implemented
Open Graph Tags
Twitter Card Tags
Dynamic Project Pages
Project detail pages use Jinja2 template variables for unique content:
Test Results
Verification
All routes tested and working:
Social Media Preview
When shared on Twitter/X, LinkedIn, Discord, or WhatsApp, DevPath links will now display:
Breaking Changes
None. This PR only adds meta tags to templates and new routes. All existing functionality is preserved.
Checklist
How to Test
Local Testing
Test Routes
Social Media Debuggers
Run Tests
Files Changed
templates/index.html(modified)templates/project.html(modified)templates/404.html(modified)templates/405.html(modified)templates/500.html(modified)routes/main_routes.py(modified)tests/test_basic.py(modified)static/robots.txt(created)static/sitemap.xml(created)static/og-banner.png(created)Impact
<head>