view themes/tuxlite_tbs/templates/pelican_comment_system.html @ 98:1d9382b0329b

Specify the syntax on markdown blocks to avoid broken output that has class=err
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 19 Dec 2019 10:04:33 +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 %}