I am currently trying to build a website that will display team members using Jekyll and was wondering if there was an elegant way to make iterate and group people from specific groups.
So for reference point what I have is a md file collection that works containing the
name: Person Name
team: Team
image: pnglinkhere
And I was wondering if it is possible to iterate programmatically with something like this?
{% for team in site.people | [some how get list of unique team attributes] %}
<h5>{{ team }}</h5>
{% for people in site.people %}
{% if people.team = team % }
<div>Show Person</div>
{% endif %}
{% endfor %}
{% endfor %}
Any solution that doesn't involve folder reorganization would be beneficial and appreciated. I'm mainly looking for a programmatic way so it makes changes easier and so if a new is added I don't have to copy-paste for the new team.
Thank you