diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/tuxlite_tbs/templates/pelican_comment_system.html	Sat Jan 02 04:47:39 2016 +0100
@@ -0,0 +1,21 @@
+{% 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 %}