I have lots of markdown source files, which are automatically generated by some data export step.
I'm using metalsmith-layouts and have e.g. these lines on top of my handcrafted (not automatically generated) markdown files in order to layout them using my layout.html:
---
layout: layout.html
title: Downloads
---
How can I add the layout info dynamically to all files that match for example a file pattern tutorials/*.md, so that those files are also rendered with my layout? Adding this info to the files before conversion wouldn't be elegant.