hugolib: Deprecate site methods Author, Authors, and Social

Closes #12228
This commit is contained in:
Joe Mooring
2024-03-12 11:16:05 -07:00
committed by Bjørn Erik Pedersen
parent 78178d0c2a
commit d4d49e0f0e
10 changed files with 42 additions and 36 deletions

View File

@@ -447,15 +447,21 @@ func (s *Site) Params() maps.Params {
return s.conf.Params
}
// Deprecated: Use taxonomies instead.
func (s *Site) Author() map[string]any {
hugo.Deprecate(".Site.Author", "Use taxonomies 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")
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")
return s.conf.Social
}