Track3 / hermit

A minimal & fast Hugo theme for bloggers
https://hugo-theme-hermit.netlify.com/
MIT License
1.12k stars 304 forks source link

Hugo -D: Not working #164

Open ghost opened 2 years ago

ghost commented 2 years ago

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

Hoooao commented 2 years ago

Try to use root/administrator user to run the command.

jamesbraza commented 2 years ago

See https://github.com/Track3/hermit/issues/27#issuecomment-450775241, does this help?