Skip to content

Conversation

@satnaing
Copy link
Owner

Dynamic OG Image Generation

  • dynamic OG images will be generated at build time using Satori.
  • the OG image format will be <blog post title>.svg.
  • draft posts and posts with frontmatter.ogImage specified will be excluded from dynamic OG image generation.
  • author and site title will be retrieved from src/config.ts file (SITE.author and SITE.title).

Example Look:
image

@satnaing satnaing merged commit ce3f1dc into main Dec 28, 2022
@satnaing satnaing deleted the feat/auto-og-image-generation branch December 28, 2022 03:56
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 14, 2024

Deploying astro-paper with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec10609
Status: ✅  Deploy successful!
Preview URL: https://a442a572.astro-paper.pages.dev

View logs

qwaxgo pushed a commit to qwaxgo/qwaxgo-astro-template that referenced this pull request Apr 29, 2025
* feat: add dynamic og image using satori
* feat: add og card styling
* feat: add dynamic paths for ogTitle
* feat: add default og url
* ci: change config site url for testing purpose
* fix: update original auto-generate og image style
* refactor: move ogImage jsx inside generateOgImage
* fix: add conditions for filtering draft posts & ogImages
* build: update minor and major dependency updates
* build: update site option in config file
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.

2 participants