Hugo Fails to Build

I’m having issues with my Hugo site deploying to Netlify. I have already deployed but when I push new update to my github, my Netlify link doesn’t get updated. This morning I tried running hugo but it shows me th error below but everything seems to be fine. Please help, it’s fustrating.

Building sites … ERROR 2018/05/04 08:46:42 Error while rendering “page” in “post/”: template: theme/post/single.html:5:11: executing “theme/post/single.html” at <partial "post-header…>: error calling partial: template: theme/partials/post-header.html:9:86: executing “theme/partials/post-header.html” at <dateFormat (default …>: error calling dateFormat: unable to cast of type to Time

The error messages can be hard to parse can’t they!

Here it is telling you that the problem is at line 9 of your theme/partials/post-header.html file.

Whatever is being picked up by that appears not to be a valid date.

Unfortunately, it is hard to then work out which page is actually causing the issue. Perhaps you have recently made a change to a content page?

I’m not sure if using the verbose parameter will give you additional information as I’ve not yet used that myself.

Peharps, I got myself confused. I just had to start afresh again.