Date field is causing an error when running
sa2812 opened this issue · comments
I get the following error message when running hugo server -D
:
Building sites … ERROR 2018/06/15 22:05:42 Error while rendering "section" in "": template: _default/list.html:16:45: executing "_default/list.html" at <.Site.Params.date_fo...>: invalid value; expected string
ERROR 2018/06/15 22:05:42 Error while rendering "page" in "posts/": template: _default/single.html:19:126: executing "_default/single.html" at <.Site.Params.date_fo...>: invalid value; expected string
Total in 137 ms
Any idea what might be causing this?
I would check the date_format parameter setting in config.toml. It is looking like:
[params]
date_format = "6 January 2006"
at my site.