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.
}
func (p *pageMeta) Author() page.Author {
+ helpers.Deprecated(".Author", "Use taxonomies.", false)
authors := p.Authors()
for _, author := range authors {
}
func (p *pageMeta) Authors() page.AuthorList {
+ helpers.Deprecated(".Authors", "Use taxonomies.", false)
authorKeys, ok := p.params["authors"]
if !ok {
return page.AuthorList{}
// AuthorProvider provides author information.
type AuthorProvider interface {
+ // Deprecated.
Author() Author
+ // Deprecated.
Authors() AuthorList
}
// InternalDependencies is considered an internal interface.
type InternalDependencies interface {
+ // GetRelatedDocsHandler is for internal use only.
GetRelatedDocsHandler() *RelatedDocsHandler
}