From c3f47a4f4b65f4fd2f1c304db506fb190bd7683c Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Tue, 28 Feb 2017 21:55:16 +0200 Subject: [PATCH] Add disqus.js --- docs/_static/disqus.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/_static/disqus.js diff --git a/docs/_static/disqus.js b/docs/_static/disqus.js new file mode 100644 index 00000000..881ab6de --- /dev/null +++ b/docs/_static/disqus.js @@ -0,0 +1,10 @@ +var disqus_shortname; +var disqus_identifier; +(function() {{ + var disqus_thread = $("#disqus_thread"); + disqus_shortname = disqus_thread.data('disqus-shortname'); + disqus_identifier = disqus_thread.data('disqus-identifier'); + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); +}})();