constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 2eb1f32d8cee0a9ec45e5276cef0c3d0267cfb66
parent 6e842888c4231c91970f2946f595e24104fd8e40
Author: Dan Callaghan <djc@djc.id.au>
Date:   Fri,  5 Jul 2013 23:55:24 +1000

protocol-relative URL for Disqus js

Diffstat:
Mtemplates/blog/entry.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/blog/entry.html b/templates/blog/entry.html
@@ -32,7 +32,7 @@ from viewutils import tag_list
           var disqus_url = 'http://' + window.location.host + window.location.pathname.replace(/\.html$/, '');
           (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
-           dsq.src = 'http://${config.get("disqus", "site")}.disqus.com/embed.js';
+           dsq.src = '//${config.get("disqus", "site")}.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
           })();
         </script>