jbake
jbake copied to clipboard
(Config) Allow config overrides for sub-directories
It would be great if JBake allowed custom configuration overrides in directories.
For instance, I have this structure:
/content/
/pages/ Few hundred files which are pages
/blog/ Blog posts
I want all files in the pages
dir to have default.type=page
.
But I also want to have files in blog
to have default.type=post
.
Solution
/content/
/pages/
/jbake.properties ... with `default.type=page`
/blog/ Blog posts
/jbake.properties ... with `default.type=post`
JBake would simply keep a tree of properties and find the first value from the file to the root.
How about this for JBake 2.7? :)
Interesting idea... can definitely see the benefit. Might be a bit of a stretch for 2.7 though ;-)