How to validate frontmatter using an extension?

Hi folks,

I would like to write an extension which inspects and validates the frontmatter of every page, failing site generation if any pages fails validation. I have been looking in to the extensions documentation but can’t seem to find a way to do this.

Most grateful if someone could let me know if there’s an extension point I can hook in to in order to do this?

Many thanks,

Edd

That’s not a question worth asking here!

Hi @PamelaGibsonmy,

Thanks for your reply, can I ask why you think it’s not worth asking here? I thought this was a fairly official middleman forum? Could you suggest where I might be better off asking the question?

Many thanks,

Edd