hugolib: Revert deprecation of .Page.Lang

Deprecation message was also emitted when calling .Page.Language.Lang.
Reverting for now, but will remove all references to .Page.Lang from
documentation.
This commit is contained in:
Joe Mooring 2024-02-01 08:47:30 -08:00 committed by Bjørn Erik Pedersen
parent 963cecc12c
commit 6cb3bda3d1

View file

@ -153,9 +153,7 @@ func (p *pageMeta) Description() string {
return p.pageConfig.Description
}
// Deprecated: use .Page.Language.Lang instead.
func (p *pageMeta) Lang() string {
hugo.Deprecate(".Page.Lang", "Use .Page.Language.Lang instead.", "v0.123.0")
return p.s.Lang()
}