view/library.html.haml in inqlude-0.7.3 vs view/library.html.haml in inqlude-0.7.4

- old
+ new

@@ -38,16 +38,17 @@ %hr #disqus_thread :javascript - var disqus_shortname = 'inqlude'; + var disqus_config = function () { + this.page.url = 'http://inqlude.org/libraries/#{m.name}.html'; + this.page.identifier = '#{m.name}'; + }; + (function() { + var d = document, s = d.createElement('script'); - var disqus_identifier = '#{m.name}'; - var disqus_url = 'http://inqlude.org/libraries/#{m.name}.html'; + s.src = 'https://inqlude.disqus.com/embed.js'; - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + s.setAttribute('data-timestamp', +new Date()); + (d.head || d.body).appendChild(s); })();