summaryrefslogtreecommitdiff
path: root/theme/templates/article.html
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates/article.html')
-rwxr-xr-xtheme/templates/article.html35
1 files changed, 33 insertions, 2 deletions
diff --git a/theme/templates/article.html b/theme/templates/article.html
index 562b98a..976041a 100755
--- a/theme/templates/article.html
+++ b/theme/templates/article.html
@@ -28,11 +28,42 @@
</ul>
{% endif %}
-
+
{% if DISQUS_SITENAME %}
+
<div class="comments">
<h2>Commentaires&nbsp;:</h2>
- <div id="disqus_thread"></div>
+ <div id="disqus_thread">
+ {% if article.disqus_comments %}
+ <ul class="post-list">
+ {% for comment in article.disqus_comments recursive %}
+ <li class="post">
+ <div class="post-content">
+ <div class="avatar hovercard">
+ <img alt="Avatar" src="{{ comment.author.avatar.small.cache }}">
+ </div>
+ <div class="post-body">
+ <header>
+ <span class="publisher-anchor-color">{{ comment.author.name }}</span>
+ <span class="time-ago" title="{{ comment.createdAt }}">{{ comment.createdAt }}</span>
+ </header>
+ <div class="post-message-container">
+ <div class="post-message publisher-anchor-color ">
+ {{ comment.message }}
+ </div>
+ </div>
+ </div>
+ </div>
+ {% if comment.children %}
+ <ul class="children">
+ {{ loop(comment.children) }}
+ </ul>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </div>
<script type="text/javascript">
var disqus_identifier = "{{ article.url }}";
(function() {