Skip to content

Commit 43e18e3

Browse files
committed
feat (update): core team image and data
1 parent 1d7b1e6 commit 43e18e3

19 files changed

Lines changed: 64 additions & 40 deletions

js/team.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,15 @@ async function loadTeam() {
467467
return parseTeamMd(await res.text());
468468
})
469469
);
470-
const coreMembers = coreResults.filter(r => r.status === 'fulfilled').map(r => r.value);
470+
const coreMembers = coreResults
471+
.filter(r => r.status === 'fulfilled')
472+
.map(r => r.value)
473+
.sort((a, b) => {
474+
const aHasImg = imageExists(a.meta) ? 1 : 0;
475+
const bHasImg = imageExists(b.meta) ? 1 : 0;
476+
if (aHasImg !== bHasImg) return bHasImg - aHasImg;
477+
return (Number(a.meta.order) || 999) - (Number(b.meta.order) || 999);
478+
});
471479
renderCoreGrid(coreMembers, coreContainer);
472480

473481
// Fetch members
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Mehati Punnamaraju
3+
batch: Core
4+
department: Core Team
5+
spirit_dog: Naruto
6+
image: public/team/core/images/mehati-punnamaraju.jpg
7+
order: 17
8+
---
9+
Initially, I had actually been a little scared of dogs, but the cuties here had warmed my heart immediately! Now, the work I do for this club has become so natural to me, I cannot remember what life was like without these dogs!

public/team/core/content/mehati-punnumaraju.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

public/team/core/content/ojal-jayakeerthi-rao.md renamed to public/team/core/content/ojal-rao.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
2-
name: Ojal Jayakeerthi Rao
2+
name: Ojal Rao
33
batch: Core
44
department: Core Team
55
spirit_dog: Dumbo
6-
image: public/team/core/images/ojal-jayakeerthi-rao.jpg
6+
image: public/team/core/images/ojal-rao.jpg
7+
image2: public/team/core/images/ojal-rao-2.jpg
8+
image3: public/team/core/images/ojal-rao-3.jpg
9+
image4: public/team/core/images/ojal-rao-4.jpg
710
order: 10
811
---
912
I seemed to have misunderstood the prompt, and instead of writing a brief description of myself, I accidentally penned a haiku for my spirit dog, Dumbo:

public/team/core/content/pia-rattan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Pia Rattan
33
batch: Core
44
department: Core Team
55
spirit_dog: Toshi/Goofy
6-
image:
6+
image: public/team/core/images/pia-rattan.jpg
77
order: 21
88
---
99
Hi, I'm Pia Rattan.

public/team/core/content/tejas-nageshwaran.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ spirit_dog: Ladla
66
image: public/team/core/images/tejas-nageshwaran.jpeg
77
order: 27
88
---
9+
Hi! I'm Tejas, a fourth year economics major. When I'm not squealing Stockings' name to wake her up, you can find me being mauled by Icecream at gate 2, or overfeeding Sheru eggs.
File renamed without changes.
1.84 MB
Loading
2.79 MB
Loading
1.91 MB
Loading

0 commit comments

Comments
 (0)