diff --git a/assets/images/team/penelope-yong.jpg b/assets/images/team/penelope-yong.jpg new file mode 100644 index 000000000..e2c1c56e9 Binary files /dev/null and b/assets/images/team/penelope-yong.jpg differ diff --git a/team/team.ejs b/team/team.ejs index 92750180d..65e852daf 100644 --- a/team/team.ejs +++ b/team/team.ejs @@ -1,3 +1,31 @@ +<% items.forEach(item => { + if (item.title === "Team Members") { + // Update this to the number of initial members to keep unsorted + const m = 2; + + // Separate the first m members + const firstMembers = item.members.slice(0, m); + const remainingMembers = item.members.slice(m); + + // Sort the remaining members by last name + remainingMembers.sort((a, b) => { + const lastNameA = a.name.split(' ').pop().toLowerCase(); + const lastNameB = b.name.split(' ').pop().toLowerCase(); + return lastNameA.localeCompare(lastNameB); + }); + + // Recombine the arrays: unsorted first m members + sorted remaining members + item.members = firstMembers.concat(remainingMembers); + } else { + // Sort all members by last name if title is not "Team Members" + item.members.sort((a, b) => { + const lastNameA = a.name.split(' ').pop().toLowerCase(); + const lastNameB = b.name.split(' ').pop().toLowerCase(); + return lastNameA.localeCompare(lastNameB); + }); + } +}); %> + <% for (const item of items) { %> diff --git a/team/team.yml b/team/team.yml index 102024b64..df54459a1 100644 --- a/team/team.yml +++ b/team/team.yml @@ -217,8 +217,13 @@ - linkedin: https://www.linkedin.com/in/shravangoswami/ - mail: shravanngoswamii@gmail.com - - + - name: Penelope Yong + image: penelope-yong.jpg + university: The Alan Turing Institute + links: + - github: https://github.com/penelopeysm + - mail: pyong@turing.ac.uk + # GSOC Contributors: - title: Google Summer of Code Students