I add a date string to a filename like 2021-02-05-my-post.md, so that content files are easily managed.
Is there a way to add the current date to the filename when creating a new content file by hugo new?
I’m expecting to config like contentName = "%Y-%m-%d-:title".
You can use a dateobject with formats in your archetype file. Then when you call new post/blabla/filename.md the frontmatter will set the URL to the format you want. There is no way to have Hugo output another filename than the one you give to hugo new, so this is more or less a workaround.