aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-02-03 07:44:49 -0800
committerBjørn Erik Pedersen <[email protected]>2024-02-03 17:11:06 +0100
commit3a665ddbf922cb3956710b3d2fb6843142d69e2c (patch)
treee9a18379f989afe0822daaeb14804d019e84f568 /resources
parent46575baa02562e4ad05c89f4250287413e38627a (diff)
downloadhugo-3a665ddbf922cb3956710b3d2fb6843142d69e2c.tar.gz
hugo-3a665ddbf922cb3956710b3d2fb6843142d69e2c.zip
resources/page: Formally deprecate .Site.LastChange
Use .Site.Lastmod instead.
Diffstat (limited to 'resources')
-rw-r--r--resources/page/site.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/page/site.go b/resources/page/site.go
index 9ef76505d..f2118a3b2 100644
--- a/resources/page/site.go
+++ b/resources/page/site.go
@@ -263,6 +263,7 @@ func (s *siteWrapper) Taxonomies() TaxonomyList {
}
func (s *siteWrapper) LastChange() time.Time {
+ hugo.Deprecate(".Site.LastChange", "Use .Site.Lastmod instead.", "v0.123.0")
return s.s.Lastmod()
}