From cf1caf267660e7561f3de440fb700ae8dfac056a Mon Sep 17 00:00:00 2001 From: David Kebler Date: Sat, 22 Apr 2017 20:56:30 -0700 Subject: [PATCH] make disqus use https, force https when sites like github don't do it automatically. Add favorite icon load from /images --- layouts/partials/head/fonts.html | 3 ++- layouts/partials/head/meta.html | 10 ++++++++++ layouts/shortcodes/disqus.html | 6 +++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head/fonts.html b/layouts/partials/head/fonts.html index e4258b6..9499fbd 100644 --- a/layouts/partials/head/fonts.html +++ b/layouts/partials/head/fonts.html @@ -1,6 +1,7 @@ - + + diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 3eec4eb..da0c7a7 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -5,3 +5,13 @@ + + + {{ if isset .Site.Params "force_https" }} + + {{ end }} diff --git a/layouts/shortcodes/disqus.html b/layouts/shortcodes/disqus.html index 830761d..a66871a 100644 --- a/layouts/shortcodes/disqus.html +++ b/layouts/shortcodes/disqus.html @@ -13,14 +13,14 @@ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; var disqus_shortname = '{{ .Get 0 | default .Site.DisqusShortname }}'; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); - + -comments powered by Disqus +comments powered by Disqus