Skip to content

Commit 5bb22b6

Browse files
jvnsbep
authored andcommitted
hugolib: Make .Site.Author deprecation warning clearer
Fixes #12269
1 parent 41f69a7 commit 5bb22b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hugolib/site.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,20 +511,20 @@ func (s *Site) Params() maps.Params {
511511
// Deprecated: Use taxonomies instead.
512512
func (s *Site) Author() map[string]any {
513513
if len(s.conf.Author) != 0 {
514-
hugo.Deprecate(".Site.Author", "Use taxonomies instead.", "v0.124.0")
514+
hugo.Deprecate(".Site.Author", "Implement taxonomy 'author' or use .Site.Params.Author instead.", "v0.124.0")
515515
}
516516
return s.conf.Author
517517
}
518518

519519
// Deprecated: Use taxonomies instead.
520520
func (s *Site) Authors() page.AuthorList {
521-
hugo.Deprecate(".Site.Authors", "Use taxonomies instead.", "v0.124.0")
521+
hugo.Deprecate(".Site.Authors", "Implement taxonomy 'authors' or use .Site.Params.Author instead.", "v0.124.0")
522522
return page.AuthorList{}
523523
}
524524

525525
// Deprecated: Use .Site.Params instead.
526526
func (s *Site) Social() map[string]string {
527-
hugo.Deprecate(".Site.Social", "Use .Site.Params instead.", "v0.124.0")
527+
hugo.Deprecate(".Site.Social", "Implement taxonomy 'social' or use .Site.Params.Social instead.", "v0.124.0")
528528
return s.conf.Social
529529
}
530530

0 commit comments

Comments
 (0)