view themes/tuxlite_tbs/templates/pelican_comment_system.html @ 77:92846a71739f pelican_comment_system

The changes were merged to the default branch.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 06 Jan 2016 16:12:07 +0100
parents c2b99e876559
children
line wrap: on
line source

{% if article.comments %}
    {% for comment in article.comments recursive %}
        {% if loop.depth0 == 0 %}
            {% set marginLeft = 0 %}
        {% else %}
            {% set marginLeft = 50 %}
        {% endif %}
            <article id="comment-{{comment.slug}}" style="border: 1px solid #DDDDDD; padding: 5px 0px 0px 5px; margin: 0px -1px 5px {{marginLeft}}px;">
                <a href="{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" rel="bookmark" title="Permalink to this comment">Permalink</a>
                <h4>{{ comment.author }}</h4>
                <p>Posted on <abbr class="published" title="{{ comment.date.isoformat() }}">{{ comment.locale_date }}</abbr></p>
                {{ comment.metadata['my_custom_metadata'] }}
                {{ comment.content }}
                {% if comment.replies %}
                    {{ loop(comment.replies) }}
                {% endif %}
            </article>
    {% endfor %}
{% else %}
    <p>There are no comments yet.<p>
{% endif %}