mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
tpl: Always load GA script over HTTPS
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
65deb72dc4
commit
2e6712e281
@@ -163,7 +163,7 @@ if (!doNotTrack) {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
</script>
|
||||
<script async src='//www.google-analytics.com/analytics.js'></script>
|
||||
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
||||
{{ end }}
|
||||
{{- end -}}`},
|
||||
{`google_news.html`, `{{ if .IsPage }}{{ with .Params.news_keywords }}
|
||||
|
@@ -23,6 +23,6 @@ if (!doNotTrack) {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
</script>
|
||||
<script async src='//www.google-analytics.com/analytics.js'></script>
|
||||
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user