I have blog posts stored as JSON documents in a git repo that I would like to use with Hugo to build a website on Netlify.
The keys used in the JSON don’t currently map to Hugo’s frontmatter format, so I would like to transform the files at build time (pre-build?) so that Hugo will accept them as posts.
I want to maintain the files in their current format in the repo because the CMS I use reads/writes posts using this, so transforming them in the repo isn’t an option.
Is it possible to transform source with Netlify, perhaps by writing a build plugin? Are there any examples I could follow?