mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
hugolib: Deprecate .Site.GoogleAnalytics
Use .Site.Config.Services.GoogleAnalytics.ID instead.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d4016dd5cd
commit
a692278bc6
@@ -452,8 +452,9 @@ func (s *Site) DisqusShortname() string {
|
||||
return s.Config().Services.Disqus.Shortname
|
||||
}
|
||||
|
||||
// TODO(bep): deprecate.
|
||||
// Deprecated: Use .Site.Config.Services.GoogleAnalytics.ID instead
|
||||
func (s *Site) GoogleAnalytics() string {
|
||||
helpers.Deprecated(".Site.GoogleAnalytics", "Use .Site.Config.Services.GoogleAnalytics.ID instead.", false)
|
||||
return s.Config().Services.GoogleAnalytics.ID
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user