I’d love to show on my site the date the site was last updated, and I can’t seem to find a way to do that.
.Site.LastChange only shows the last modification of pages (and contrary to what the doc says, not just any pages, but only in .Site.Params.MainSections it looks like).
.Site.Home.Lastmod seems to give the date of the commit that last touched files immediately in content/, excluding subdirs (is this how it is supposed to work, by the way?)
.Site.Lastmod doesn’t work at all (and neither does .Site.GitInfo, which seems to be a logical place to look for this information).
I had a similar need recently (wanted to display the last commit hash for the entire site) and resorted to using an external process to create a data template which my site footer could consume. Rather kludgy, but it works smoothly in absence of a way to get that cleanly within Hugo.
.Site.LastChange chould show the most recent non-zero .LastMod. If this isn’t the case, it’s a bug and I will fix it.
.Site.Home.LastMod will (if memory serves me right) be the same as Site.LastChange if you have no content file for the home page, else it will get that date.
Yes, it actually does just that. My confusion in original post was due to languages getting in the way.
This is not the behavior I get on my site, but I can’t share the code of that, and I can’t reproduce my issues on a newly created site. I’ll dig in more.