2024-01-09 23:20:06 +01:00
|
|
|
{% macro nav_items() %}
|
|
|
|
{% for item in config.extra.nav %}
|
2024-01-12 10:14:19 +01:00
|
|
|
<li><a
|
2024-01-09 23:20:06 +01:00
|
|
|
{% if item.external %}
|
2024-01-12 10:14:19 +01:00
|
|
|
class="external" href="{{ item.path }}"
|
2024-01-09 23:20:06 +01:00
|
|
|
{% endif %}
|
2024-01-12 10:14:19 +01:00
|
|
|
{% if item.target_blank %}
|
|
|
|
target="_blank"
|
|
|
|
{% endif %}
|
|
|
|
href="{{ item.path }}">{{ item.title }}</a></li>
|
2024-01-09 23:20:06 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endmacro %}
|
2024-01-10 00:55:48 +01:00
|
|
|
|
|
|
|
{% macro personnel() %}
|
|
|
|
{% for person in section.pages %}
|
2024-01-11 19:25:02 +01:00
|
|
|
|
2024-01-11 18:10:51 +01:00
|
|
|
{%- set_global image = "/static/img/placeholder.jpg" %}
|
|
|
|
{%- for asset in person.assets %}
|
|
|
|
{%- if asset is matching(person.slug~"[.](jpg|png)$") %}
|
|
|
|
{%- set_global image = asset %}
|
|
|
|
{%- break %}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- set image = resize_image(path=image, width=300, height=300, op="fill") %}
|
2024-01-11 19:25:02 +01:00
|
|
|
|
|
|
|
{% set_global dataset = "" %}
|
|
|
|
{% if person.extra.beh %}
|
|
|
|
{% for beh in person.extra.beh %}
|
|
|
|
{% set_global dataset = dataset ~ beh %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="person" data-beh="{{ dataset }}">
|
2024-01-11 18:10:51 +01:00
|
|
|
<img src="{{ image.url }}" alt={{ person.extra.name }}>
|
|
|
|
<div class="name">{{ person.extra.name }}</div>
|
|
|
|
<div class="role">{{ person.extra.role }}</div>
|
|
|
|
</div>
|
2024-01-11 19:25:02 +01:00
|
|
|
|
2024-01-10 00:55:48 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endmacro %}
|