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

Process data cascade for folder-based frontmatter defaults #139

Merged
merged 3 commits into from
Sep 11, 2020

Conversation

jaredcwhite
Copy link
Member

Related to #50

This PR provides the ability to put a _defaults.yml/yaml/json file(s) anywhere in the source tree, which will then cause a "data cascade" — aka pages/documents will pull their front matter defaults from one or more defaults files in the tree with subfolders potentially overriding values from their parents.

While this isn't a 100% replacement for the previous defaults config syntax, as you can see here with the changes made to the Bridgetown website, it very well can be a wholesale replacement.

Still needs documentation/tests.

@jaredcwhite jaredcwhite added the enhancement New feature or request label Sep 8, 2020
@jaredcwhite jaredcwhite added this to the 0.17.0 "Mount Scott" milestone Sep 8, 2020
Copy link
Member

@KonnorRogers KonnorRogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Super easy to follow, minimal changes made. If we could fix the failing tests (they actually produce errors not fail) we should be good to go.

It seems like we just have to adjust the value of site.source to fix where it searches for the src directory.

@jaredcwhite jaredcwhite merged commit ba8607f into main Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants