tiff-personal/backup/social-image.md
2025-04-29 00:06:59 -04:00

971 B

title, publishDate, description, tags, ogImage
title publishDate description tags ogImage
Example OG Social Image 27 January 2023 An example post for Astro Cactus, detailing how to add a custom social image card in the frontmatter
example
blog
image
/social-card.png

Adding your own social image to a post

This post is an example of how to add a custom open graph social image, also known as an OG image, to a blog post. By adding the optional ogImage property to the frontmatter of a post, you opt out of satori automatically generating an image for this page.

If you open this markdown file src/content/post/social-image.md you'll see the ogImage property set to an image which lives in the public folder1.

ogImage: "/social-card.png"

You can view the one set for this template page here.


  1. The image itself can be located anywhere you like. ↩︎