Dynamic OG image generation in AstroPaper blog posts

Dynamic OG image generation in AstroPaper blog posts

Simone de Beauvoir

Table of Contents

Open Graph images are vital for social media sharing. AstroScholar can automatically generate these for you!

How it works

When a blog post does not have a heroImage explicitly defined in its frontmatter, AstroScholar will fall back to dynamically generating an image based on the post’s title and metadata.

This ensures every single post looks great when shared on platforms like Twitter, LinkedIn, or Facebook.