diff options
author | Joe Mooring <[email protected]> | 2024-02-01 07:33:49 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 17:12:52 +0100 |
commit | 963cecc12c9eae8112cebfa941f5c1bc25ab22a4 (patch) | |
tree | 3f8bf546b189eecce2a7d100edb59a10e4139bf0 /hugolib/page__meta.go | |
parent | d8f0e3071558f948b41b64bb514a01b62742a60a (diff) | |
download | hugo-963cecc12c9eae8112cebfa941f5c1bc25ab22a4.tar.gz hugo-963cecc12c9eae8112cebfa941f5c1bc25ab22a4.zip |
all: Deprecate .Page.Lang and .Page.File.Lang
Use .Page.Language.Lang instead.
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r-- | hugolib/page__meta.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go index e4cb2b83b..923bf9f8b 100644 --- a/hugolib/page__meta.go +++ b/hugolib/page__meta.go @@ -105,6 +105,7 @@ func (p *pageMeta) Aliases() []string { return p.pageConfig.Aliases } +// Deprecated: use taxonomies. func (p *pageMeta) Author() page.Author { hugo.Deprecate(".Author", "Use taxonomies.", "v0.98.0") authors := p.Authors() @@ -115,6 +116,7 @@ func (p *pageMeta) Author() page.Author { return page.Author{} } +// Deprecated: use taxonomies. func (p *pageMeta) Authors() page.AuthorList { hugo.Deprecate(".Author", "Use taxonomies.", "v0.112.0") return nil @@ -151,7 +153,9 @@ 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() } |