mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
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.
This commit is contained in:
@@ -52,7 +52,9 @@ type AlternativeOutputFormatsProvider interface {
|
||||
|
||||
// AuthorProvider provides author information.
|
||||
type AuthorProvider interface {
|
||||
// Deprecated.
|
||||
Author() Author
|
||||
// Deprecated.
|
||||
Authors() AuthorList
|
||||
}
|
||||
|
||||
@@ -118,6 +120,7 @@ type InSectionPositioner interface {
|
||||
|
||||
// InternalDependencies is considered an internal interface.
|
||||
type InternalDependencies interface {
|
||||
// GetRelatedDocsHandler is for internal use only.
|
||||
GetRelatedDocsHandler() *RelatedDocsHandler
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user