]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
hugolib: Make .Site.Author deprecation warning clearer
authorJulia Evans <julia@jvns.ca>
Sun, 13 Oct 2024 21:48:30 +0000 (17:48 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 14 Oct 2024 07:16:11 +0000 (09:16 +0200)
Fixes #12269

hugolib/site.go

index d0a3bd37091c4f6a41e0290ee50a89f5fda1a65b..08031390ba19836d789acf9ffc24a0ec58fd342e 100644 (file)
@@ -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
 }