Enabled Disqus comments on articles of DISQUS_SITENAME property is set.
diff --git a/templates/article.html b/templates/article.html
index 627623c..25d3b3d 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -27,6 +27,22 @@
</p>
{% endif %}
</div>
+
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <h2>Comments !</h2>
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_identifier = "{{ article.url }}";
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ </div>
+ {% endif %}
+
</article>
{% endblock %}