Include yaml front matter from external file

My .md files are created by R with knitr, and all front matter is stripped off. I would like to always include one file, e.g., from my directory with the required tags etc. to be prepended to the .md file.

Any simple solution? I have read about compound documents, but there must be some easier way.

I tried:


but only saw the above in the output file

you can provide a frontmatter.yaml in the page directory and this will be merged with the page information.

Thanks. Maybe I should have found this myself. Documentation of grav is excellent, but it can be a bit overwhelming.

Actually don’t think this is documented yet… It has been added as part of Grav 1.1 development.