aboutsummaryrefslogtreecommitdiffstats
path: root/gum/templates/article.html
diff options
context:
space:
mode:
Diffstat (limited to 'gum/templates/article.html')
-rw-r--r--gum/templates/article.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/gum/templates/article.html b/gum/templates/article.html
index e43e48e..15188d0 100644
--- a/gum/templates/article.html
+++ b/gum/templates/article.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<section id="content" class="body">
@@ -26,6 +27,20 @@
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <h3>Comments</h3>
+ <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 %}
</div><!-- /.eleven.columns -->