Debian Codegraph @

docs/content/en/methods/site/Lastmod.md

raw
1 ---
2 title: Lastmod
3 description: Returns the last modification date of site content.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: time.Time
9 signatures: [SITE.Lastmod]
10 ---
11
12 The `Lastmod` method on a `Site` object returns a [`time.Time`] value. Use this with time [functions] and [methods]. For example:
13
14 ```go-html-template
15 {{ .Site.Lastmod | time.Format ":date_long" }} → January 31, 2024
16
17 ```
18
19 [`time.Time`]: https://pkg.go.dev/time#Time
20 [functions]: /functions/time/
21 [methods]: /methods/time/