common/hugo: Adjust deprecation timing and message

Closes #13333
This commit is contained in:
Joe Mooring 2025-02-02 08:55:47 -08:00 committed by Bjørn Erik Pedersen
parent 835579b338
commit 7104de83ce
3 changed files with 11 additions and 11 deletions

View file

@ -171,7 +171,7 @@ func (ns *Namespace) TestDeprecationInfo(item, alternative string) string {
// Internal template func, used in tests only.
func (ns *Namespace) TestDeprecationWarn(item, alternative string) string {
v := hugo.CurrentVersion
v.Minor -= 6
v.Minor -= 3
hugo.Deprecate(item, alternative, v.String())
return ""
}
@ -179,7 +179,7 @@ func (ns *Namespace) TestDeprecationWarn(item, alternative string) string {
// Internal template func, used in tests only.
func (ns *Namespace) TestDeprecationErr(item, alternative string) string {
v := hugo.CurrentVersion
v.Minor -= 12
v.Minor -= 15
hugo.Deprecate(item, alternative, v.String())
return ""
}