Basic logic for a list of personnel

This commit is contained in:
Emil Miler 2024-01-10 00:55:48 +01:00
parent d1dcc8e6d6
commit e49f2fa39e
3 changed files with 19 additions and 0 deletions

View File

@ -7,3 +7,10 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endmacro %} {% endmacro %}
{% macro personnel() %}
{% for person in section.pages %}
{{ person.extra.name }}
{{ person.extra.role }}
{% endfor %}
{% endmacro %}

5
templates/page.html Normal file
View File

@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block content %}
{{ page.content | safe }}
{% endblock %}

7
templates/personnel.html Normal file
View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<section class="personnel">
{{ macros::personnel() }}
</section>
{% endblock %}