EnableGitInfo and Lastmod For Last Updated Timestamp


git lastmod rating

Reading through the Hugo documentation

This first link wasn’t the one originally read that resulted in changing hugo-scratch-1, Git variable, but it does have some useful information to be followed up.

enableGitInfo (false)
Enable .GitInfo object for each page (if the Hugo site is versioned by Git). 
This will then update the Lastmod parameter for each page using the 
last git commit date for that content file.

configuration

See Also

Breadcrumb