{% extends 'base/base.html' %} {% import 'input/comments.html' as comments %} {% macro show_items(items) %} {# show items and comments items if present after each item, then post form if allow_commenting is set #} {% for item in items %} {% include 'blog/item.html' %} {% for comments_items in item.comments_items_list %} {% if allow_commenting %}
{{ comments.comment(service=comments_items.service, node=comments_items.node) }}
{% endif %}
{{show_items(comments_items)}}
{% endfor %} {% endfor %} {% endmacro %} {% block body %}
{{ show_items(items) }}
{% endblock body %}