Skip to content

Make document YAML front matter available as variables  #65

Description

@johndgiese

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions