Skip to content

Commit

Permalink
hugolib: Revert deprecation of .Page.Lang
Browse files Browse the repository at this point in the history
Deprecation message was also emitted when calling .Page.Language.Lang.
Reverting for now, but will remove all references to .Page.Lang from
documentation.
  • Loading branch information
jmooring authored and bep committed Feb 1, 2024
1 parent 963cecc commit 6cb3bda
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hugolib/page__meta.go
Expand Up @@ -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()
}

Expand Down

0 comments on commit 6cb3bda

Please sign in to comment.