diff options
author | Joe Mooring <[email protected]> | 2024-02-01 08:47:30 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 18:00:50 +0100 |
commit | 6cb3bda3d1c0f8df1b9858cebf350f9b8a36cd37 (patch) | |
tree | 988734dc6b2ef4a8c72545567ae15fb5492c1420 /hugolib/page__meta.go | |
parent | 963cecc12c9eae8112cebfa941f5c1bc25ab22a4 (diff) | |
download | hugo-6cb3bda3d1c0f8df1b9858cebf350f9b8a36cd37.tar.gz hugo-6cb3bda3d1c0f8df1b9858cebf350f9b8a36cd37.zip |
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.
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r-- | hugolib/page__meta.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go index 923bf9f8b..6cc157b1f 100644 --- a/hugolib/page__meta.go +++ b/hugolib/page__meta.go @@ -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() } |