Creating a modular approach to json schema in an eleventy website

Having enjoyed Kaj Kandler’s presentation at the 25th 11ty meetup July 2025 I wanted a modular and automated way to add json schema to my personal website so built a set of templates and some simple logic. Schema files Structure in 11ty I have created a schema directory in the includes directory and keep all the files associated with this in there. This has a main schema.njk file that is pulled…