HUGO

Quick start error

did this >> hugo server -D

got this >>

Building sites … ERROR 2019/03/01 16:07:54 render of "page" failed: "/home/aq/quickstart/themes/hermit/layouts/posts/single.html:22:54": execute of template failed: template: posts/single.html:22:54: executing "main" at <.Site.Params.datefor...>: invalid value; expected string
ERROR 2019/03/01 16:07:54 render of "taxonomyTerm" failed: "/home/aq/quickstart/themes/hermit/layouts/_default/list.html:21:50": execute of template failed: template: _default/list.html:21:50: executing "main" at <.Site.Params.datefor...>: invalid value; expected string
ERROR 2019/03/01 16:07:54 render of "taxonomy" failed: "/home/aq/quickstart/themes/hermit/layouts/_default/list.html:21:50": execute of template failed: template: _default/list.html:21:50: executing "main" at <.Site.Params.datefor...>: invalid value; expected string
Total in 24 ms
Error: Error building site: failed to render pages: render of "section" failed: "/home/aq/quickstart/themes/hermit/layouts/_default/list.html:21:50": execute of template failed: template: _default/list.html:21:50: executing "main" at <.Site.Params.datefor...>: invalid value; expected string

config.toml has this >>

baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "hermit"

HELP!

You’re using the Hermit theme, which is not intended to work with the quick start.

That error is caused by a missing config file param.

and that would be?
I searched the forum and didn’t find any help.

@q-bitter

The Hermit theme that you downloaded and are using while following the Quick Start Guide contains an exampleSite directory. For example the relevant date parameters that are required by this theme are located here: https://github.com/Track3/hermit/blob/master/exampleSite/config.toml#L28-L32

thanks. it works.