HUGO
Menu
GitHub 87548 stars Mastodon

Lastmod

返回站點內容的最後修改日期。

Syntax

SITE.Lastmod

Returns

time.Time

Site 對象上的 Lastmod 方法返回 time.Time 值。與時間 函數方法 一起使用。例如:

{{ .Site.Lastmod | time.Format ":date_long" }} → January 31, 2024

Last updated: January 1, 0001
Improve this page