I have been tyring to automate the setting of lastmod
on Hugo to no avail. I want to capture in a note the last modified timestamp from git
, as these notes reside in git
repository, and use it within a note. No dice, so far.
Update: 24 Jun 2025 @ 17:14:13
Got it to work! It is not using the git
timestamp, because it doesn’t really acccurately provide the modification time, but the commit time (two different things). Instead, I am setting the timestamp when the note is opened for edit.