Basic logic for a list of personnel
This commit is contained in:
parent
d1dcc8e6d6
commit
e49f2fa39e
@ -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
5
templates/page.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{{ page.content | safe }}
|
||||||
|
{% endblock %}
|
7
templates/personnel.html
Normal file
7
templates/personnel.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<section class="personnel">
|
||||||
|
{{ macros::personnel() }}
|
||||||
|
</section>
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user