summaryrefslogtreecommitdiffstats
path: root/hugolib/page__meta.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-20 17:08:01 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-23 22:22:50 +0200
commit097fd588ca2928056122991caaa879e835c5ba62 (patch)
treed96fe3ece141b90d56cf5b7ff9103d6e32e13c75 /hugolib/page__meta.go
parent41cc4e4ba3bd849cee7dcb691504ebebbfce680f (diff)
Deprecate page.Author and page.Authors
These are not documented, and they don't belong on Page. We should consider having author a first class citizen of Hugo, but as it is not it's better modelled as a taxonomy.
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r--hugolib/page__meta.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go
index 5568aa539..0c269d57a 100644
--- a/hugolib/page__meta.go
+++ b/hugolib/page__meta.go
@@ -131,6 +131,7 @@ func (p *pageMeta) Aliases() []string {
}
func (p *pageMeta) Author() page.Author {
+ helpers.Deprecated(".Author", "Use taxonomies.", false)
authors := p.Authors()
for _, author := range authors {
@@ -140,6 +141,7 @@ func (p *pageMeta) Author() page.Author {
}
func (p *pageMeta) Authors() page.AuthorList {
+ helpers.Deprecated(".Authors", "Use taxonomies.", false)
authorKeys, ok := p.params["authors"]
if !ok {
return page.AuthorList{}