aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorJulia Evans <[email protected]>2024-10-13 17:48:30 -0400
committerBjørn Erik Pedersen <[email protected]>2024-10-14 09:16:11 +0200
commit5bb22b6b4e459fcba2944a6d1ce66c91413f8f75 (patch)
treec79a32ce9ce671c8e247073dd444d198e9abebf9 /hugolib/site.go
parent41f69a72553858395f402a16b9b74f21d10e5cfa (diff)
downloadhugo-5bb22b6b4e459fcba2944a6d1ce66c91413f8f75.tar.gz
hugo-5bb22b6b4e459fcba2944a6d1ce66c91413f8f75.zip
hugolib: Make .Site.Author deprecation warning clearer
Fixes #12269
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index d0a3bd370..08031390b 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -511,20 +511,20 @@ func (s *Site) Params() maps.Params {
// Deprecated: Use taxonomies instead.
func (s *Site) Author() map[string]any {
if len(s.conf.Author) != 0 {
- hugo.Deprecate(".Site.Author", "Use taxonomies instead.", "v0.124.0")
+ hugo.Deprecate(".Site.Author", "Implement taxonomy 'author' or use .Site.Params.Author instead.", "v0.124.0")
}
return s.conf.Author
}
// Deprecated: Use taxonomies instead.
func (s *Site) Authors() page.AuthorList {
- hugo.Deprecate(".Site.Authors", "Use taxonomies instead.", "v0.124.0")
+ hugo.Deprecate(".Site.Authors", "Implement taxonomy 'authors' or use .Site.Params.Author instead.", "v0.124.0")
return page.AuthorList{}
}
// Deprecated: Use .Site.Params instead.
func (s *Site) Social() map[string]string {
- hugo.Deprecate(".Site.Social", "Use .Site.Params instead.", "v0.124.0")
+ hugo.Deprecate(".Site.Social", "Implement taxonomy 'social' or use .Site.Params.Social instead.", "v0.124.0")
return s.conf.Social
}