is there a way to add something like this in the Hugo front matter
lastmod: {{ now.date}}
instead of
lastmod: 2020-06-17T14:23:39+01:00
as it will be great if the page can update this every time I modify and save a .md file
currently I do it manually which I forgot all the time and also it is extra work to do for no reason if Hugo can do it for me using those brackets things of gotemplate
Archetypes are used with the command hugo new to create a new content file.
You cannot update the modification date with that command.
Use J Mooring’s solution for automatic lastmod updates.