# Lastmod
> 返回站点内容的最后修改日期。
- 官方英文原文：https://gohugo.io/methods/site/lastmod/
- 本页规范地址：https://hugozh.cn/methods/site/lastmod/
- 最近更新：2026-10-02
- 最后提交：912b1d3 chore(site): 添加 static/CNAME（hugozh.cn），供 GitHub Pages 等平台绑定自定义域名
- 签名：SITE.Lastmod
- 返回类型：time.Time
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译，如有出入以官方英文原文为准

---
`Site` 对象上的 `Lastmod` 方法返回一个 [`time.Time`][] 值。请把它与时间[函数][]和[方法][]配合使用。例如：

```go-html-template
{{ .Site.Lastmod | time.Format ":date_long" }} → January 31, 2024

```

[`time.Time`]: https://pkg.go.dev/time#Time
[函数]: /functions/time/
[方法]: /methods/time/

