summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/site/LastChange.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/site/LastChange.md')
-rw-r--r--docs/content/en/methods/site/LastChange.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/content/en/methods/site/LastChange.md b/docs/content/en/methods/site/LastChange.md
index aceee691d..2a8c3e491 100644
--- a/docs/content/en/methods/site/LastChange.md
+++ b/docs/content/en/methods/site/LastChange.md
@@ -9,13 +9,19 @@ action:
signatures: [SITE.LastChange]
---
+{{% deprecated-in 0.123.0 %}}
+Use [`.Site.Lastmod`] instead.
+
+[`.Site.Lastmod`]: /methods/site/lastmod/
+{{% /deprecated-in %}}
+
The `LastChange` method on a `Site` object returns a [`time.Time`] value. Use this with time [functions] and [methods]. For example:
```go-html-template
-{{ .Site.LastChange | time.Format ":date_long" }} → October 16, 2023
+{{ .Site.LastChange | time.Format ":date_long" }} → January 31, 2024
```
[`time.Time`]: https://pkg.go.dev/time#Time
-[functions]: /functions/time
-[methods]: /methods/time
+[functions]: /functions/time/
+[methods]: /methods/time/