{% macro list_posts(posts, max) %}
{% for post in posts %} {% if loop.index <= max %} {% if loop.index == max %}
{% elif loop.last %}
{% else %}
{% endif %} {% if post.date %}
{{ macros_format_date::format_date(date=post.date) }}
{% endif %}
{% if post.taxonomies.tags %}
{% for tag in post.taxonomies.tags %} {{ tag }} {% endfor %}
{% endif %}
{% if post.description %} {{ post.description }} {% elif post.summary %} {{ post.summary | safe }}… {% endif %}
Read more →
{% endif %} {% if not loop.last %} {% if loop.index == max %} {% endif %} {% endif %} {% endfor %}
{% endmacro %}