You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given Astro doesn't have a similar concept of a Head component out of the box like the Next.js Pages Router does, we can simply return a series of meta tags that will allow someone to easily drop in a Social Cards.
At its basics, the component should work as follows:
Twitter Title here is particularly interesting as the social card will not work without a Twitter Title, is there a way we can infer this from Astor without a user manually specifying this? Should we throw a warning if the prop is not defined?
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
Create a new CldOgImage component that allows for easy drop-in support for social cards
Describe the solution you'd like
The goal is to mostly replicate the CldOgImage component from Next Cloudinary: https://next.cloudinary.dev/cldogimage/basic-usage
Given Astro doesn't have a similar concept of a Head component out of the box like the Next.js Pages Router does, we can simply return a series of meta tags that will allow someone to easily drop in a Social Cards.
At its basics, the component should work as follows:
CldOgImage would be using the getCldOgImageUrl under the hood exposing all of the same APIs, which would allow for transformations.
https://github.com/cloudinary-community/next-cloudinary/blob/main/next-cloudinary/src/components/CldOgImage/CldOgImage.tsx
The meta tags that should be added are, at a minimum:
Twitter Title here is particularly interesting as the social card will not work without a Twitter Title, is there a way we can infer this from Astor without a user manually specifying this? Should we throw a warning if the prop is not defined?
The text was updated successfully, but these errors were encountered: