From 2e6712e2814f333caa807888c1d8a9a5a3c03709 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Sun, 10 Jun 2018 06:47:44 +0900 Subject: [PATCH] tpl: Always load GA script over HTTPS --- hugolib/embedded_templates_test.go | 2 +- tpl/tplimpl/embedded/templates.autogen.go | 2 +- tpl/tplimpl/embedded/templates/google_analytics_async.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hugolib/embedded_templates_test.go b/hugolib/embedded_templates_test.go index e04a37f63..23d809281 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 6a88ed855..976be11fc 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 -}}