Skip to content

Commit

Permalink
modified people.md to sort alumni according to the year of graduation
Browse files Browse the repository at this point in the history
  • Loading branch information
morteza21 committed Jun 10, 2024
1 parent 1139881 commit 890abe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion people.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ class: people
---

{% assign sorted = site.people | sort: 'ordering' %}
{% assign sorted_alumni_ascending = site.people | sort: 'year-graduated' %}
{% assign sorted_alumni = sorted_alumni_ascending | reverse %}

{% for people in sorted %}
{% if people.status == "current" %}
<div class="flex-container">
Expand Down Expand Up @@ -39,7 +42,7 @@ class: people
{% endfor %}

# Alumni
{% for people in sorted %}
{% for people in sorted_alumni %}
{% if people.status == "alumnus" %}
<div class="">
<p>{{ people.name }} - {{ people.program }}, {{ people.year-graduated }} </p>
Expand Down

0 comments on commit 890abe9

Please sign in to comment.