Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo -D: Not working #164

Open
ghost opened this issue May 5, 2022 · 2 comments
Open

Hugo -D: Not working #164

ghost opened this issue May 5, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented May 5, 2022

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
Copy link

Hoooao commented May 30, 2022

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

@jamesbraza
Copy link

See #27 (comment), does this help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants