Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

content.tiitle and content.body is empty for root page

18 views
Skip to first unread message

oleg.pol...@gmail.com

unread,
Jul 15, 2019, 7:26:39 PM7/15/19
to JBake Users
Hello.

I faced this problem - when I try to generate main (root) page for site I get this error:
Failed at: ${content.body} [in template "index.ftl" at line 16, column 1]

I created page index.md in folder "content"
It contains:
title=Home
type=index

But I get that error even if I delete this root markdown page.
Main page is generated without any content file.

My questions:
How to use my own content (markdown file) for root page?
How to get title, body and other fields which are described in this file?


oleg.pol...@gmail.com

unread,
Jul 15, 2019, 7:32:31 PM7/15/19
to JBake Users

O my God!
I found this!

Just set
render.index=false
in jbake.properties file
After that JBake becomes using your own root file .

Reply all
Reply to author
Forward
0 new messages