Skip to content

feat(seo): add Open Graph meta tags for blog post social previews#219

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:183-blog-post-preview-sharing
Jun 19, 2026
Merged

feat(seo): add Open Graph meta tags for blog post social previews#219
josecelano merged 1 commit into
torrust:developfrom
josecelano:183-blog-post-preview-sharing

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Add Open Graph and Twitter Card meta tags to blog post pages so that social platforms (WhatsApp, Telegram, Discord, etc.) show a rich preview with title, description, and cover image when sharing.

Changes

  • Added og:title, og:description, og:image, og:url, og:type meta tags to Post.svelte
  • Added twitter:title, twitter:description, twitter:image, twitter:card meta tags to Post.svelte
  • Imported siteBaseUrl from $lib/data/meta to build absolute image and URL paths

Related issue

Closes #183

Checklist

  • npm run lint passes
  • npm run check passes
  • Manually tested in the browser (if UI changes)

Add og:title, og:description, og:image, og:url, og:type and Twitter Card
meta tags to the Post.svelte component so social platforms (WhatsApp,
Telegram, Discord, etc.) show rich previews with title, description,
and cover image when sharing blog post links.

Closes torrust#183
Copilot AI review requested due to automatic review settings June 19, 2026 09:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds per-blog-post SEO/social metadata so shared blog URLs render rich previews (title/description/cover image) on platforms that consume Open Graph and Twitter Card tags.

Changes:

  • Import siteBaseUrl and generate absolute og:image/twitter:image URLs for blog cover images.
  • Add Open Graph tags (og:title, og:description, og:image, og:url, og:type) for blog posts.
  • Add Twitter Card tags (twitter:title, twitter:description, twitter:image, twitter:card) for blog posts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@josecelano josecelano self-assigned this Jun 19, 2026
@josecelano

Copy link
Copy Markdown
Member Author

ACK cf744aa

@josecelano josecelano merged commit a9d092e into torrust:develop Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blog post preview not included when sharing

2 participants