miguelsimoni / hugo-initio

Hugo Theme port of Initio bootstrap template by GetTemplate
https://themes.gohugo.io/hugo-initio/
MIT License
90 stars 119 forks source link

Get Date errors #12

Closed ghost closed 6 years ago

ghost commented 6 years ago

When i run it i get

ERROR 2017/12/25 09:52:11 Error while rendering "page": template: theme/_default/single.html:13:105: executing "theme/_default/single.html" at <.Site.Params.datefor...>: invalid value; expected string ERROR 2017/12/25 09:52:11 Error while rendering "section": template: theme/_default/list.html:13:104: executing "theme/_default/list.html" at <.Site.Params.datefor...>: invalid value; expected string

Which is this line in list.html

miguelsimoni commented 6 years ago

Hi @PurplePilot

You must have the date format value dateform in the params section of the config.toml

[params]
    DateForm = "January 2, 2006"