hugolib: Deprecate .Site.GoogleAnalytics

Use .Site.Config.Services.GoogleAnalytics.ID instead.
This commit is contained in:
Joe Mooring
2023-10-16 11:31:09 -07:00
committed by Bjørn Erik Pedersen
parent d4016dd5cd
commit a692278bc6
7 changed files with 55 additions and 26 deletions

View File

@@ -176,6 +176,7 @@ func (s *siteWrapper) Authors() AuthorList {
return AuthorList{}
}
// Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead
func (s *siteWrapper) GoogleAnalytics() string {
return s.s.GoogleAnalytics()
}
@@ -373,6 +374,7 @@ func (t testSite) Languages() langs.Languages {
return nil
}
// Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead
func (t testSite) GoogleAnalytics() string {
return ""
}