hermit
hermit copied to clipboard
Hugo -D: Not working
Hi,
I set up a new homepage and run through the tutorial. When executing
hugo
everthing works fine. But if I try executing
hugo -D
or hugo server -D
this is what happening:
Start building sites … hugo v0.88.1+extended linux/amd64 BuildDate=unknown ERROR 2022/05/05 21:36:49 render of "page" failed: "/home/philipp/Desktop/hermitNew/themes/hermit/layouts/posts/single.html:22:54": execute of template failed: template: posts/single.html:22:54: executing "main" at <.Site.Params.dateform>: invalid value; expected string ERROR 2022/05/05 21:36:49 render of "taxonomy" failed: "/home/philipp/Desktop/hermitNew/themes/hermit/layouts/_default/list.html:21:50": execute of template failed: template: _default/list.html:21:50: executing "main" at <.Site.Params.dateformShort>: invalid value; expected string ERROR 2022/05/05 21:36:49 render of "term" failed: "/home/philipp/Desktop/hermitNew/themes/hermit/layouts/_default/list.html:21:50": execute of template failed: template: _default/list.html:21:50: executing "main" at <.Site.Params.dateformShort>: invalid value; expected string Error: Error building site: failed to render pages: render of "section" failed: "/home/philipp/Desktop/hermitNew/themes/hermit/layouts/_default/list.html:21:50": execute of template failed: template: _default/list.html:21:50: executing "main" at <.Site.Params.dateformShort>: invalid value; expected string Total in 61 ms
Does one have an idea?
Sincerly,
Philipp
Try to use root/administrator user to run the command.
See https://github.com/Track3/hermit/issues/27#issuecomment-450775241, does this help?