Update template_embedded.go
authoroneleaftea <oneleaftea@users.noreply.github.com>
Tue, 22 Aug 2017 17:55:29 +0000 (10:55 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Aug 2017 18:26:04 +0000 (20:26 +0200)
Changed disqus urls from http to https. This fixes mixed content warnings on browsers when viewing Hugo websites over SSL (https).

tpl/tplimpl/template_embedded.go

index bea0e610b1c97e41d0f5618200cd71f50e152fc9..2eb9b22830815648c21c8546b3a497dca3c5b4df 100644 (file)
@@ -183,8 +183,8 @@ func (t *templateHandler) embedTemplates() {
         (d.head || d.body).appendChild(s);
     })();
 </script>
-<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}`)
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}`)
 
        // Add SEO & Social metadata
        t.addInternalTemplate("", "opengraph.html", `<meta property="og:title" content="{{ .Title }}" />