<% for (const group of groups) { %>
<% const groupItems = items.filter((item) => item.people_group === group.key); %>
<% if (groupItems.length > 0) { %>
<% } %>
<%
// "description" often has two parts separated by a literal "
", e.g. "PhD Student
Sparse regression for genomics". // On the card we only want the first part (the role); the full text is still used elsewhere (e.g. as this page's meta description). const role = (item.description || "").split("
")[0].trim(); %>
<% } %>
<% } %>
<% } %>
<%= group.label %>
<% for (const item of groupItems) { %> > <% if (item.image) { %>", e.g. "PhD Student
Sparse regression for genomics". // On the card we only want the first part (the role); the full text is still used elsewhere (e.g. as this page's meta description). const role = (item.description || "").split("
")[0].trim(); %>
<%= item.title %>
<%= role %>
<% if (item.education_card) { %><%= item.education_card %>
<% } %>