I’m looking for a way to automatically call a helper method upon render of each page. So far all my attempts building an extension for that have failed. I can’t seem to find a hook to call a helper method on a resource.
My helper method is supposed to read the frontmatter and then call content_for in the context of the resource. Is something like that possible? Or is there any other way to achieve the same?