From: Christian Oliff Date: Sat, 9 Jun 2018 21:47:44 +0000 (+0900) Subject: tpl: Always load GA script over HTTPS X-Git-Tag: v0.42~13 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2e6712e2814f333caa807888c1d8a9a5a3c03709;p=brevno-suite%2Fhugo tpl: Always load GA script over HTTPS --- diff --git a/hugolib/embedded_templates_test.go b/hugolib/embedded_templates_test.go index e04a37f6..23d80928 100644 --- a/hugolib/embedded_templates_test.go +++ b/hugolib/embedded_templates_test.go @@ -50,7 +50,7 @@ Disqus: b.AssertFileContent("public/index.html", "'anonymizeIp', true", "'script','https://www.google-analytics.com/analytics.js','ga');\n\tga('create', 'ga_id', 'auto')", - " - + {{ end }} {{- end -}}`}, {`google_news.html`, `{{ if .IsPage }}{{ with .Params.news_keywords }} diff --git a/tpl/tplimpl/embedded/templates/google_analytics_async.html b/tpl/tplimpl/embedded/templates/google_analytics_async.html index 6a88ed85..976be11f 100755 --- a/tpl/tplimpl/embedded/templates/google_analytics_async.html +++ b/tpl/tplimpl/embedded/templates/google_analytics_async.html @@ -23,6 +23,6 @@ if (!doNotTrack) { ga('send', 'pageview'); } - + {{ end }} -{{- end -}} \ No newline at end of file +{{- end -}}