Skip to content

feat: add dynamic Open Graph and Twitter Card meta tags to project pages#143

Merged
komalharshita merged 2 commits into
komalharshita:mainfrom
sat-06:feat/dynamic-og-tags
May 18, 2026
Merged

feat: add dynamic Open Graph and Twitter Card meta tags to project pages#143
komalharshita merged 2 commits into
komalharshita:mainfrom
sat-06:feat/dynamic-og-tags

Conversation

@sat-06
Copy link
Copy Markdown
Contributor

@sat-06 sat-06 commented May 16, 2026

Description

Added dynamic Open Graph and Twitter Card meta tags to templates/project.html for project detail pages.

The tags now dynamically render:

  • project title
  • project description
  • project URL

This improves social media sharing previews for individual project pages when shared on platforms like LinkedIn, WhatsApp, Discord, and Twitter/X.

Changes Made

  • Added og:title
  • Added og:description
  • Added og:type
  • Added og:url
  • Added twitter:card
  • Added twitter:title
  • Added twitter:description

Testing

  • Ran the Flask app locally using python app.py
  • Verified tags using page source inspection (Ctrl + U)
  • Tested across multiple project pages to confirm dynamic rendering

Related Issue

Fixes #94

Screenshots

Added dynamic OG and Twitter meta tags visible in the page source for different project pages.
Screenshot 2026-05-16 124304

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

@sat-06 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.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

@sat-06
Copy link
Copy Markdown
Contributor Author

sat-06 commented May 18, 2026

Hi @komalharshita
I have resolved the conflicts and updated the PR. Please go through it and let me know if any changes are required from my side.
Thank you!

Copy link
Copy Markdown
Owner

@komalharshita komalharshita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice contribution — this is a clean and useful SEO/social-sharing enhancement.

The Open Graph and Twitter Card tags are implemented correctly using dynamic project data, and the changes are well-scoped without affecting existing functionality.

This will improve how project pages appear when shared across platforms like LinkedIn, Discord, WhatsApp, and Twitter/X.

One optional future improvement could be adding a default og:image / twitter:image preview image, but the current implementation is already good to merge.

@komalharshita komalharshita merged commit 132f334 into komalharshita:main May 18, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Open Graph and Twitter Card meta tags to project detail pages with dynamic content

2 participants