mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
tpl: Always load GA script over HTTPS
This commit is contained in:
parent
65deb72dc4
commit
2e6712e281
3 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ Disqus:
|
||||||
b.AssertFileContent("public/index.html",
|
b.AssertFileContent("public/index.html",
|
||||||
"'anonymizeIp', true",
|
"'anonymizeIp', true",
|
||||||
"'script','https://www.google-analytics.com/analytics.js','ga');\n\tga('create', 'ga_id', 'auto')",
|
"'script','https://www.google-analytics.com/analytics.js','ga');\n\tga('create', 'ga_id', 'auto')",
|
||||||
"<script async src='//www.google-analytics.com/analytics.js'>")
|
"<script async src='https://www.google-analytics.com/analytics.js'>")
|
||||||
|
|
||||||
// Disqus
|
// Disqus
|
||||||
b.AssertFileContent("public/index.html", "\"disqus_shortname\" + '.disqus.com/embed.js';")
|
b.AssertFileContent("public/index.html", "\"disqus_shortname\" + '.disqus.com/embed.js';")
|
||||||
|
|
|
@ -163,7 +163,7 @@ if (!doNotTrack) {
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
}
|
}
|
||||||
</script>
|
</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 -}}`},
|
{{- end -}}`},
|
||||||
{`google_news.html`, `{{ if .IsPage }}{{ with .Params.news_keywords }}
|
{`google_news.html`, `{{ if .IsPage }}{{ with .Params.news_keywords }}
|
||||||
|
|
|
@ -23,6 +23,6 @@ if (!doNotTrack) {
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
}
|
}
|
||||||
</script>
|
</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 -}}
|
{{- end -}}
|
Loading…
Reference in a new issue