{% macro project_list() %} {% for project in section.pages %} {% set_global image = "/static/img/project_placeholder.png" %} {% for asset in project.assets %} {% if asset is matching("main\.(jpg|png)$") %} {% set_global image = asset %} {% break %} {% endif %} {% endfor %} {% set image = resize_image(path=image, width=300, height=300, op="fill") %}
{{ project.title }}

{% if project.description %} {{ project.description }} {% else %} … {% endif %}

{% endfor %} {% endmacro %}