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

Make document YAML front matter available as variables #65

Open
johndgiese opened this issue Oct 9, 2020 · 0 comments
Open

Make document YAML front matter available as variables #65

johndgiese opened this issue Oct 9, 2020 · 0 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@johndgiese
Copy link
Contributor

johndgiese commented Oct 9, 2020

We want to make the variables in a document's YAML front matter available in templates.

It should work the same way Jekyll works:

https://jekyllrb.com/docs/front-matter/#custom-variables

Only, use "document" instead of "page".

Also, be sure to consider what would/should occur if there were a file named data/document.yml. I propose that we simply disallow the use of the file data/document.yml OR we merge it with the YAML front matter, having the front matter take precedence.

Once this change is made, we should update the init_files/documents/release_record.md to set the release_id with a document-level variable.

@johndgiese johndgiese added this to the v1 milestone Oct 9, 2020
@johndgiese johndgiese added the good first issue Good for newcomers label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant