aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2023-10-16 11:31:09 -0700
committerBjørn Erik Pedersen <[email protected]>2023-10-17 20:06:42 +0200
commita692278bc679af44f69cc49c11efc412edd979a0 (patch)
tree40b99ffea484db49f3e30a04b1cc71aaef3722b4 /resources
parentd4016dd5cd57a27f19a5472c6031d156066860b7 (diff)
downloadhugo-a692278bc679af44f69cc49c11efc412edd979a0.tar.gz
hugo-a692278bc679af44f69cc49c11efc412edd979a0.zip
hugolib: Deprecate .Site.GoogleAnalytics
Use .Site.Config.Services.GoogleAnalytics.ID instead.
Diffstat (limited to 'resources')
-rw-r--r--resources/page/site.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/page/site.go b/resources/page/site.go
index 7b8960fdd..527bc5046 100644
--- a/resources/page/site.go
+++ b/resources/page/site.go
@@ -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 ""
}