I use the frontmatter
date to show publishDate in my articles. Might it be possible to have a feature for commandline manipulation of frontmatter? I’m creating a new article but writing on it sometimes for several days before publishing.
Let’s think aloud: Possible syntax:
hugo frontmatter path/to/post.md [--secure] date NOW=default|Unix-Timestamp|Go-Time hugo frontmatter path/to/post.md [--secure] PARAM "VALUE"
This function should overwrite the given value in frontmatter, it could print a former value, if there’s one set (by adding the former value to output it’s possible to do a reset).
By thinking longer about and wirting here… Let’s give it a flag
--secure to preserve former values.