{% macro nav_list_items(items) %} {% if items %} {% endif %} {% endmacro %} {% macro nav_list_items_main(items) %} {% if items %} {% endif %} {% endmacro %} {% macro breadcrumbs(page) %} {% endmacro %} {% macro list_posts(section, include_expired=false) %} {% for post in section.pages %} {% if include_expired==false and post.extra.expiration and post.extra.expiration | date(format="%s") | int + 86400 < now(timestamp=true) %} {% continue %} {% endif %}
{{ post.title }}
{% if post.summary %} {{ post.summary | safe }} {% else %} {{ post.content | safe }} {% endif %} {% if post.date %}
{{ post.date | date(format="%d.%m.%Y")}}
{% endif %}
{% endfor %} {% endmacro %} {% macro list_external_links(section) %} {% for post in section.pages %}
{% if post.extra.logo %} {{ post.title }} {% else %} {{ post.title }} {% endif %}
{{ post.content | safe }}
{% endfor %} {% endmacro %} {% macro list_people(group) %}
{% for page in section.pages %} {% if page.extra.group and page.extra.group == group %}
{{ macro::profile_picture(profile=page) }}
{% if page.extra.role %}
{{ page.extra.role }}
{% endif %}
{{ macro::profile_info(profile=page) }}
{% endif %} {% endfor %}
{% endmacro %} {% macro print_profile() %}

{{ page.title }}

{% if page.extra.role %}
{{ page.extra.role }}
{% endif %}
{{ macro::profile_info(profile=page) }}
{% endmacro %} {% macro profile_picture(profile) %} {% set_global img = "../static/placeholder-avatar.jpg" %} {% for asset in profile.assets %} {% if asset is matching("img.(jpg|png)$") %} {% set_global img = asset %} {% break %} {% endif %} {% endfor %} {% set image = resize_image(path=img, width=256, height=256, op="fill", quality=85) %} {{ profile.title }} {% endmacro %} {% macro profile_info(profile) %} {% if profile.extra.email %}
{{ profile.extra.email }}
{% endif %} {% if profile.extra.phone %}
{{ profile.extra.phone }}
{% endif %} {% if profile.extra.homepage %}
{{ profile.extra.homepage | replace(from="https://", to="") | replace(from="http://", to="") }}
{% endif %} {% if profile.extra.sis %}
Rozvrh
{% endif %} {% endmacro %} {% macro gallery(page) %} {% endmacro %} {% macro gallery_list() %} {% endmacro %}