Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Include yaml front matter from external file

Started by Muut Archive 10 years ago · 4 replies · 543 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 1369 9 years ago
Archive · by Muut Archive, 9 years ago
2 942 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago