OG.cool – Display headlines in OG images

R
Renaudil y a 2 jours
0

Description

A Next.js app that displays headlines directly inside a dynamically generated image. Powered by @vercel/og.

npx boilerapp og-cool

Documentation

Introduction

OG.cool is a demo that shows you how you can display headlines directly inside your news article's OG image. Powered by @vercel/og.

Read the guide to learn more about how you can implement your own version: https://vercel.com/guides/displaying-article-headlines-in-social-previews

How it works

To try out OG.cool, all you need to do is replace the https:// (or https://www.) portion of the news article's URL with https://og.cool/.

Example:

The OG.cool URL will still redirect to the destination URL when a user clicks on it, but for bots like TwitterBot or SlackBot, they'll be shown an OG image with a nice headline in it (refer Examples section).

OG.cool currently supports the following publications:

  • New York Times
  • Wired
  • Techcrunch

Examples

New York Times

image

Try it for yourself: https://og.cool/nytimes.com/2023/08/23/climate/ocean-warming-fish.html (OG image preview)

Wired

image

Try it for yourself: https://og.cool/wired.com/story/adhd-adderall-video-games-endeavorrx/ (OG image preview)

Prix

Gratuit

FREE

Commentaires (0)

FAQ

Questions Fréquemment Posées

Vous avez une question ? Nous avons les réponses. Si vous ne trouvez pas ce que vous cherchez, n'hésitez pas à nous contacter.

Boilerapp est une plateforme communautaire dédiée au partage de boilerplates, de starter kits et de modèles de projets pour développeurs. Notre objectif est simple : vous faire gagner du temps sur la configuration initiale (setup) pour que vous puissiez coder ce qui compte vraiment. Que vous cherchiez une simple base de code ou un projet SaaS complet, vous le trouverez ici.

Vous avez d'autres questions ?

Notre équipe est là pour vous aider. Contactez-nous et nous vous répondrons dès que possible.