{% comment %} Generates a list of people. Expects 'people' as an argument, representing the list of people to show. {% endcomment %} {% for role in site.roles %} {% assign rollers = people | where: "role", role.id %} {% if rollers.size > 0 %} {% endif %} {% endfor %}