Skip to content

Commit

Permalink
resources/page: Formally deprecate .Site.LastChange
Browse files Browse the repository at this point in the history
Use .Site.Lastmod instead.
  • Loading branch information
jmooring authored and bep committed Feb 3, 2024
1 parent 46575ba commit 3a665dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/page/site.go
Expand Up @@ -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()
}

Expand Down

0 comments on commit 3a665dd

Please sign in to comment.