Add ERROR logging on invalid date and publishdate
authorbep <bjorn.erik.pedersen@gmail.com>
Mon, 5 Jan 2015 11:44:41 +0000 (12:44 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Mon, 5 Jan 2015 11:44:41 +0000 (12:44 +0100)
commit837922d32bc1d0d2fbc50af07947e6b858df1550
treef4820edf0ce1c389bd18446b8a53e11ce34c3d12
parent0d17ee7ed4331513adb6e08f5697c4d803155655
Add ERROR logging on invalid date and publishdate

Having correct dates is important in Hugo. Previously date parsing errors were swallowed, leading to confusing results.

This commit adds ERROR logging when date or publishdate in front matter cannot be parsed into a time.Time.
hugolib/page.go