]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Enabled Disqus comments on every page.
authorMichael Hanke <michael.hanke@gmail.com>
Thu, 21 Oct 2010 20:21:12 +0000 (16:21 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Thu, 21 Oct 2010 20:21:12 +0000 (16:21 -0400)
sphinx/_templates/page.html [new file with mode: 0644]

diff --git a/sphinx/_templates/page.html b/sphinx/_templates/page.html
new file mode 100644 (file)
index 0000000..9add6e2
--- /dev/null
@@ -0,0 +1,22 @@
+{% extends "basic/page.html" %}
+
+{% block body %}
+<!-- HEADNOTES -->
+{{ super() }}
+
+
+<h2>Comments</h2>
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+  /**
+    * var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread] 
+    */
+  (function() {
+   var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+   dsq.src = 'http://neurodebian.disqus.com/embed.js';
+   (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+  })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=neurodebian">comments powered by Disqus.</a></noscript>
+<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+{% endblock %}