I’m using Hugo 0.52 with theme beautifulhugo.
I have this variable .Site.LastChange.Format “January 2, 2006 @ 15:04 MST”
but all I get when the site is generated is “January 1, 0001 @ 00:00 UTC”.
Which file, exactly, do I need to modify, for the .LastChange to be updated?
When I use .PublishDate and the date variable in the _index.md page is “2018-12-21T13:15:00+02:00”, the date is generated correctly.
I would start a new project, with just a few pieces of content. That’s how we debug everything, actually: make a small project to test something, if it works, it is an issue elsewhere.
We’ll, it doesn’t work for the home page, apparently. But it works for pages in sections (like posts).
I can’t read go, but I imagine if we look it is calculating that from the page kind, and not necessarily other kinds of content.
I think there may be lots of conditions for this, maybe having to do with drafts, and what a piece of content is. We may need to document it more, but do we think there is an bug here?
a string representing the date/time of the most recent change to your site. This string is based on the date variable in the front matter of your content pages.
Wonder if it’s worth mentioning that it doesn’t apply to homepage/index front matter date?
Emphasis mine. I didn’t know this has been answered, but yeah, I suppose since then we have included _index.md to other kinds of content.
I think the feature works as expected; I don’t think updating the description for a taxonomy is a change the site visitor is thinking of, so it works. We can just clarify it is the specific page kind that changes the value.