diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2015-01-03 19:08:30 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2015-01-03 19:10:29 +0100 |
commit | adefa3853855aac303ff6cab5b8a43564b584890 (patch) | |
tree | a4ca0173e365b8b70d8b267ff76caaf7716f7c4e /theme/templates | |
parent | 237ae081dbade817f4a2033b6aa2d3cdeb15b8b2 (diff) |
Uses disqus static plugin
Diffstat (limited to 'theme/templates')
-rwxr-xr-x | theme/templates/article.html | 35 |
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 :</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() { |