{% macro list_posts(posts, max, language_strings="", section_path="blog") %} {%- set separator = config.extra.separator | default(value="•") -%}
{% for post in posts %} {% if loop.index <= max %} {% if loop.index == max %} {% set bottom_divider = false %} {% elif loop.last %} {% set bottom_divider = false %} {% else %} {% set bottom_divider = true %} {% endif %}

{{ post.title }}

{% if post.taxonomies.tags %}
{% for tag in post.taxonomies.tags %} {{ tag }} {% endfor %}
{% endif %}
{% if post.description %}

{{ post.description }}

{% elif post.summary %}

{{ post.summary | striptags | trim_end_matches(pat=".") | safe }}…

{% endif %}
{{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }} 
{% endif %} {% if not loop.last %} {% if loop.index == max %}
{{ macros_translate::translate(key="all_posts", default="All posts", language_strings=language_strings) }} 
{% endif %} {% endif %} {% endfor %}
{% endmacro %}