These are chat archives for jbake-org/jbake

7th
Sep 2017
Sameer Rahmani
@lxsameer
Sep 07 2017 15:32
hi, I created a file somewhere nested in content/ directory but jbake does not compile my file.
should i do something special to my file in order for jbake to compile it ?
Manik Magar
@manikmagar
Sep 07 2017 15:41
@lxsameer Can you check if you have below three tags specified in the file and also the date should not be future one - date=2013-02-01
type=post
status=published
the date above is just a sample, it doesn't have to be that :)
Sameer Rahmani
@lxsameer
Sep 07 2017 15:53
@manikmagar the only thing different is the type which I used my directory name for it
Manik Magar
@manikmagar
Sep 07 2017 15:54
ok, is there a template registered for that type then?
Sameer Rahmani
@lxsameer
Sep 07 2017 15:54
changing it to a template name fixed it
but shouldn't jbake throw an error in this case ?
Manik Magar
@manikmagar
Sep 07 2017 15:55
we'll have to check the behavior but did you see if there is anything in logs related to that content file? It does log errors while baking.
Sameer Rahmani
@lxsameer
Sep 07 2017 15:56
no it just found my file as a new file and no error
Manik Magar
@manikmagar
Sep 07 2017 16:00
ok, will try to reproduce and see. BTW type should always match to one of the content types (eg. post or other customs). AFAIK, List of content type is prepared based on declared templates and related content is baked.
any reason you was having folder name as type instead of name configured in jbake.properties?
Sameer Rahmani
@lxsameer
Sep 07 2017 16:04
thanks any way man
Manik Magar
@manikmagar
Sep 07 2017 16:07
You are welcome!