Lastmod
Returns the last modification date of site content.
Syntax
SITE.Lastmod
Returns
time.Time
The Lastmod method on a Site object returns a time.Time value. Use this with time functions and methods. For example:
{{ .Site.Lastmod | time.Format ":date_long" }} → January 31, 2024Last updated:
February 14, 2026
:
Merge commit '8f3c066d23f431fb2c53d97ea489e4c28b42bd82' (3e2f98235)
Improve this page