Closed ghost closed 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
{{ dateFormat .Site.Params.DateForm .Date }}
Hi @PurplePilot
You must have the date format value dateform in the params section of the config.toml
dateform
[params] DateForm = "January 2, 2006"
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