aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-04-20 17:08:01 +0200
committerBjørn Erik Pedersen <[email protected]>2022-04-23 22:22:50 +0200
commit097fd588ca2928056122991caaa879e835c5ba62 (patch)
treed96fe3ece141b90d56cf5b7ff9103d6e32e13c75 /resources
parent41cc4e4ba3bd849cee7dcb691504ebebbfce680f (diff)
downloadhugo-097fd588ca2928056122991caaa879e835c5ba62.tar.gz
hugo-097fd588ca2928056122991caaa879e835c5ba62.zip
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 'resources')
-rw-r--r--resources/page/page.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/page/page.go b/resources/page/page.go
index 5133f46fa..007a2f954 100644
--- a/resources/page/page.go
+++ b/resources/page/page.go
@@ -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
}