Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Deep merge front matter defaults #2490
@parkr Is this enhancement something you are interested in?
I’m building the API for a Jekyll plugin. It affects HTML files only. On Jekyll’s 1.5.x branch I can provide global settings in the config file like this:
# _config.yml settings: foo: bar
If the same setting exists in a page’s front matter, I take this one.
With the merging technique I would just ask the user to put the settings into the front matter defaults. This would be more flexible.