Mercurial > hg > Blog
comparison themes/tuxlite_tbs/templates/pelican_comment_system.html @ 72:c2b99e876559 pelican_comment_system
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 02 Jan 2016 04:47:39 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
71:6e8d97e43bd7 | 72:c2b99e876559 |
---|---|
1 {% if article.comments %} | |
2 {% for comment in article.comments recursive %} | |
3 {% if loop.depth0 == 0 %} | |
4 {% set marginLeft = 0 %} | |
5 {% else %} | |
6 {% set marginLeft = 50 %} | |
7 {% endif %} | |
8 <article id="comment-{{comment.slug}}" style="border: 1px solid #DDDDDD; padding: 5px 0px 0px 5px; margin: 0px -1px 5px {{marginLeft}}px;"> | |
9 <a href="{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" rel="bookmark" title="Permalink to this comment">Permalink</a> | |
10 <h4>{{ comment.author }}</h4> | |
11 <p>Posted on <abbr class="published" title="{{ comment.date.isoformat() }}">{{ comment.locale_date }}</abbr></p> | |
12 {{ comment.metadata['my_custom_metadata'] }} | |
13 {{ comment.content }} | |
14 {% if comment.replies %} | |
15 {{ loop(comment.replies) }} | |
16 {% endif %} | |
17 </article> | |
18 {% endfor %} | |
19 {% else %} | |
20 <p>There are no comments yet.<p> | |
21 {% endif %} |