I’m converting posts from Jekyll to Hugo. I wrote a script that ensures all the meta data dates are in the format YYYY-MM-DDTHH:MM-05:00. (Some were had just YYYY-MM-DD, other had the time too, and some were enclosed in quotes, some were not.) I’ve created new site and added the Strange Case theme. Using the example
config.toml file, the date format is set like this:
DateFormat = "2 Jan 2006"
Some of the 276 posting I imported have the correct dates, but many - most - have
Jan 1, 0001 as their date. I don’t understand why some posts would have the correct date, while others do not.
I should elaborate. This all happening locally when I run
hugo server and visit
localhost:1313. I haven’t gotten as far as publishing the site.