resources/page: Formally deprecate .Site.LastChange - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3a665ddbf922cb3956710b3d2fb6843142d69e2c
(DIR) parent 46575baa02562e4ad05c89f4250287413e38627a
(HTM) Author: Joe Mooring <joe.mooring@veriphor.com>
Date: Sat, 3 Feb 2024 07:44:49 -0800
resources/page: Formally deprecate .Site.LastChange
Use .Site.Lastmod instead.
Diffstat:
M resources/page/site.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git 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()
}