mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
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:
committed by
Bjørn Erik Pedersen
parent
963cecc12c
commit
6cb3bda3d1
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user