I’m wondering how you would go about injecting a frontmatter variable, My post for example into an SVG image, and then. convert it to JPG. I’ve kind of mapped out a process but would love your thoughts, perhaps there is an easier way.
Output all posts as JSON.
Use node to traverse the file and pick out posts & variables I need (I think thats how it would work)
Use sharp to convert the title into an SVG and save as a JPG.