{% extends "base.html" %} {% macro project_card(path, permalink, title, description, image_path) %}
{% if image_path is defined %} {% set image = resize_image(path=image_path, width=640, height=480, op="fit") %} {% else %} {% endif %}

{{ title }}

{{ description }}

{% endmacro %} {% block content %}

{{ section.title }}

{{ section.content | safe }}
{% for path in section.subsections %} {% set sect = get_section(path=path) %} {{ self::project_card( path=path, permalink=sect.permalink, title=sect.title, description=sect.description, image_path=sect.extra.image, ) }} {% endfor %} {% for page in section.pages %} {{ self::project_card( path=page.path, permalink=page.permalink, title=page.title, description=page.description, image_path=page.extra.image, ) }} {% endfor %}
{% endblock %}