Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add datafile mutator #305

Open
carbontwelve opened this issue Feb 24, 2018 · 0 comments
Open

Add datafile mutator #305

carbontwelve opened this issue Feb 24, 2018 · 0 comments
Milestone

Comments

@carbontwelve
Copy link
Member

In 2.0 as part of #302 mutator classes were added as part of the source collection process, these handle such things as converting dates in the filename to a datetime object, setting draft status and parsing front matter.

Given that these are now quite powerful, it should be trivial to add the ability to look up a .yaml file within the same directory that matches the files filename and parse that as file based front matter.

Even more so a data.yaml file if found in the same path as the file should be parsed as its default front matter providing the end user a method by which they can add per directory front matter scopes. With a little more tinkering it should be possible to have data inherited from parent folders if needed - although that functionality can be a separate issue to this one.

@carbontwelve carbontwelve added this to the 2.1.0 milestone Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant