As promised in my last post, I’ve fixed the hugo new content
future date bug.
When running hugo new content
, the static site generator Hugo crashes with a surprising error message under these conditions:
- You’ve configured Hugo to extract publish dates from file paths in the
hugo.toml
configuration, and - configured Hugo to use an archetype to populate your new file, and
- create new content with the path containing a future date.
Here’s the error that Hugo prints out when it crashes under these conditions (year 2099 added for exaggeration):