{% if not embedded %}{% extends 'base/base.html' %}{% endif %}
{% import 'input/comment.html' as comment %}
{% macro show_items(items, comments=False) %}
{# show items and comments items if present after each item,
then post form if allow_commenting is set #}
{% for item in items %}
{% if not comments %}{% endif %}
{% include 'blog/item.html' %}
{% if not comments %}
{% endif %}
{# we recursively display comments for all comments nodes (usually there's only one) #}
{% for comments_items in item.comments_items_list %}
{% endfor %}
{% endfor %}
{% endmacro %}
{% block body %}
{{ show_items(items) }}
{% endblock body %}