diff options
-rw-r--r-- | monospace/templates/article.html | 17 | ||||
m--------- | svbhack | 0 |
2 files changed, 17 insertions, 0 deletions
diff --git a/monospace/templates/article.html b/monospace/templates/article.html index 9758fdc..722e5c5 100644 --- a/monospace/templates/article.html +++ b/monospace/templates/article.html @@ -8,5 +8,22 @@ </header> <article> {{ article.content }} + {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} + <h2>Comments</h2> + <div id="disqus_thread"></div> + <script type="text/javascript"> + var disqus_shortname = '{{ DISQUS_SITENAME }}'; + var disqus_identifier = '{{ article.url }}'; + var disqus_url = '{{ SITEURL }}/{{ article.url }}'; + (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); + })(); + </script> + <noscript>Please enable JavaScript to view the comments.</noscript> + {% endif %} </article> {% endblock %} diff --git a/svbhack b/svbhack -Subproject 35812c20ef2721e90abaad548300656ccbca7d3 +Subproject b842a7a4e075d347f3e5bac33821efc9d9cdf71 |