feat: group people by role priority

This commit is contained in:
mohamad
2026-10-29 03:53:39 +08:00
parent 7c186b4230
commit 641f4e6cee
15 changed files with 186 additions and 45 deletions
+15
View File
@@ -0,0 +1,15 @@
{% load people %}
{% for row in people|people_rows %}
<div class="people-role-row">
{% if embedded %}<h5 class="people-role-heading">{{ row.title }}</h5>{% else %}<h3 class="people-role-heading">{{ row.title }}</h3>{% endif %}
<div class="blog-partners-grid">
{% for person in row.people %}
{% if about %}
{% include "partials/_person_card.html" with person=person body=person.content read_more=person.read_more_content grouped=True %}
{% else %}
{% include "partials/_person_card.html" with person=person body=person.description read_more=person.read_more_description embedded=embedded grouped=True %}
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}