blob: aceee691d02b7e9905db3e878d4b6d301e23ae84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
title: LastChange
description: Returns the last modification date of site content.
categories: []
keywords: []
action:
related: []
returnType: time.Time
signatures: [SITE.LastChange]
---
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
```
[`time.Time`]: https://pkg.go.dev/time#Time
[functions]: /functions/time
[methods]: /methods/time
|