diff options
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r-- | hugolib/page__meta.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go index 1c4f13d3b..0dd236904 100644 --- a/hugolib/page__meta.go +++ b/hugolib/page__meta.go @@ -130,7 +130,7 @@ func (p *pageMeta) Aliases() []string { } func (p *pageMeta) Author() page.Author { - helpers.Deprecated(".Author", "Use taxonomies.", false) + hugo.Deprecate(".Author", "Use taxonomies.", "v0.98.0") authors := p.Authors() for _, author := range authors { @@ -140,7 +140,7 @@ func (p *pageMeta) Author() page.Author { } func (p *pageMeta) Authors() page.AuthorList { - helpers.Deprecated(".Authors", "Use taxonomies.", true) + hugo.Deprecate(".Author", "Use taxonomies.", "v0.112.0") return nil } @@ -226,7 +226,7 @@ func (p *pageMeta) Path() string { {{ $path = .Path }} {{ end }} ` - helpers.Deprecated(".Path when the page is backed by a file", "We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below:\n"+example, false) + p.s.Log.Warnln(".Path when the page is backed by a file is deprecated. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below:\n" + example) } |