{{heading}}

{% if mode == 'list'%}
{% for post in posts %}
{% if images[post.ID] %}
{% else %}
{% endif %}
{% if show_post_date %} {{ post_date[post.ID] }} {% endif %}

{{ post.post_title }}

{% if content[post.ID]|length > numberchars %} {{ content[post.ID]|raw|slice(0, numberchars) }}... {% else %} {{ content[post.ID]|raw }} {% endif %}

{% endfor %}
{% elseif mode == 'slideshow'%} {% if morelink is not null %} {% endif %} {% elseif mode == 'grid' %}
{% for post in posts %}
{% if images[post.ID] %} {% endif %}
{% if show_post_date %} {{ post_date[post.ID] }} {% endif %}

{{ post.post_title }}

{% if content[post.ID]|length > numberchars %} {{ content[post.ID]|raw|slice(0, numberchars) }}... {% else %} {{ content[post.ID]|raw }} {% endif %}

{% else %} {% endfor %}
{% if morelink is not null %} {% endif %} {% endif %}