-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Opengraph and automatic opengraph image generation #160
Comments
@mayankguptadotcom Thanks for making the suggestion, it would be nice to have opengraph data. My personal bandwidth is limited right now but I'm very willing to entertain PRs. |
What have you tried? What error are you getting? I can imagine that generating an og:image from a custom-themed slide would be hard (if not impossible with Hugo only) |
@aarol - i'm using your code here to generate an opengraph image.
This is stored as a partial.
when I try to visit https://slides.mayankgupta.com/cloudflare-waf/og.png , it fails to generate the image. Even on local the image that's generated is just the base image and not the one with the text. This is hosted on cloudflare pages. Edit: This is what I get when I try to open og.png on localhost |
@mayankguptadotcom - Do you have the font installed under the assets folder? What error are you getting? |
When the presentations are shared on the internet, it'll be good to generate the opengraph data with in the source code.
I'm trying to implement it however it's failing to generate the og.png with the text on it.
I've tried to follow the approach as explained here - https://aarol.dev/posts/hugo-og-image/
the generated image comes out like this - https://aarol.dev/posts/hugo-og-image/og.png
and also used the same approach as shared here - https://github.com/aarol/hugo-theme-groovy/blob/master/layouts/partials/opengraph.html
Will it be possible to add opengraph to reveal hugo theme?
The text was updated successfully, but these errors were encountered: