Background
I prefer including the date into the Permalink of a post. Everytime I create a new post, I type
hugo new post/$(date -I)-post-title.md
to ensure that the date is correct.
Problem
The title
field in the post’s front matter contained the date, which wasn’t
something that I wanted because it’s already shown next to the
icon.
Observations
Neither \d
nor [\d]
works for the PCRE character class \d
.