jbake icon indicating copy to clipboard operation
jbake copied to clipboard

(Config) Allow config overrides for sub-directories

Open OndraZizka opened this issue 6 years ago • 1 comments

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? :)

OndraZizka avatar Jul 24 '18 22:07 OndraZizka

Interesting idea... can definitely see the benefit. Might be a bit of a stretch for 2.7 though ;-)

jonbullock avatar Aug 01 '18 12:08 jonbullock