Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Include yaml front matter from external file

Started by Muut Archive 10 years ago · 4 replies · 645 views
10 years ago

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. yaml.md, 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.

10 years ago

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

10 years ago

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

10 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2602 9 years ago
Archive · by Muut Archive, 9 years ago
2 1711 9 years ago
Archive · by Muut Archive, 9 years ago
2 5005 9 years ago
Archive · by Muut Archive, 9 years ago
1 3836 9 years ago
Archive · by Muut Archive, 9 years ago
3 1818 9 years ago