-
I need to add image for every post, limited by tags I use. I've created an SVG file that I can use as template, where I will add this is my image, that I want to render as png or jpg using rsvg tool when building the website. I was thinking about using transforms for that, but I will need to open the source file and parse it myself to extract the title and tags. I was looking for Zach blog but it use some kind of service for this, he don't generate images with Eleventy. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So if anyone is interested, now or in the future. I've created shorcode for this. And to render the image that include foreignObject and p tag, so the title wraps into multiple lines I used Pappetier. This is the commit that add this jcubic/jankiewicz@c1642a4 |
Beta Was this translation helpful? Give feedback.
-
I think there is https://www.11ty.dev/docs/services/screenshots/ |
Beta Was this translation helpful? Give feedback.
So if anyone is interested, now or in the future. I've created shorcode for this. And to render the image that include foreignObject and p tag, so the title wraps into multiple lines I used Pappetier.
This is the commit that add this jcubic/jankiewicz@c1642a4