Say I want every doc contained within directory /foo to insert an image at the top of the content, matching the title of that doc. So, /foo/abc would insert abc.png, /foo/xyz would insert xyz.png, etc.
What would be the ideal way of approaching this? Overriding MarkdownContent to conditionally include the image before the rest of the content? Or something else? Or should I reconsider this approach entirely?