hugo/docs/content/en/methods/site/LastChange.md
2024-06-21 09:41:24 +02:00

657 B

title description categories keywords action
LastChange Returns the last modification date of site content.
related returnType signatures
time.Time
SITE.LastChange

{{% deprecated-in 0.123.0 %}} Use .Site.Lastmod instead.

{{% /deprecated-in %}}

The LastChange method on a Site object returns a time.Time value. Use this with time functions and methods. For example:

{{ .Site.LastChange | time.Format ":date_long" }} → January 31, 2024