Replies: 1 comment
-
We do not support this feature out of the box but we would like for a while now But I plan to resume the work on this. My intern @OzakIOne worked on a PR to support social card generation through edge rendering and through a Node.js API (OzakIOne/local-og-image-generator#1). Now we need to figure out how to integrate that and design a flexible API for this, unfortunately it's not so easy and may be blocked by #9619 As a workaround,
That's perfectly fine to swizzle it, we just don't guarantee semver retrocompatibility on it. |
Beta Was this translation helpful? Give feedback.
-
I have Elevently blog and I use special filter to run the code that generate twitter card based on SVG file, I use puppeteer to generate png file.
Does Docusaurus have a way to hook up into the system and generate the card? The problem is that the card need to be generated before the build otherwise Docusaurus will throw an error it can't find a file. Other problem is that I need access authors and title of the blog post.
Do I need to write my own code to parse Docusaurus files to generate Twitter Cards or is there a way to make it part of the build? I wanted to swizzle BlogPost, but Docusaurus says it's unsafe.
Beta Was this translation helpful? Give feedback.
All reactions