From 1949fc569a02228f449a93ad9fb99e492be916da Mon Sep 17 00:00:00 2001 From: Diptayan Jash Date: Sun, 26 Oct 2025 03:55:02 +0530 Subject: [PATCH] update --- pages/team.js | 82 ++++++++++++++++++++++++++++---------------- public/sitemap-0.xml | 10 +++--- public/sitemap.xml | 2 +- 3 files changed, 58 insertions(+), 36 deletions(-) diff --git a/pages/team.js b/pages/team.js index 223b8cf..b5481fa 100644 --- a/pages/team.js +++ b/pages/team.js @@ -17,8 +17,8 @@ const ProfileSkeleton = () => { const Teams = () => { const [fetched, setFetched] = useState(false); const [convenor, setConvenor] = useState(null); - const [president, setPresident] = useState(null); - const [vp, setVp] = useState(null); + const [president, setPresident] = useState([]); + const [vp, setVp] = useState([]); // const [admins, setAdmins] = useState([]); const [directors, setDirectors] = useState([]); @@ -43,11 +43,11 @@ const Teams = () => { const convenorData = teamData.find( (item) => item.position === "Convenor" ); - const presidentData = teamData.find( + const presidentData = teamData.filter( (item) => item.position === "President" ); - const vpData = teamData.find( - (item) => item.position === "vicePresident" + const vpData = teamData.filter( + (item) => item.position === "Vice President" ); console.log("Convenor:", convenorData); @@ -107,8 +107,8 @@ const Teams = () => { const generateKeywords = () => { const keywordsArray = [ convenor?.name || "", - president?.name || "", - vp?.name || "", + president.length > 0 ? president.map(p => p.name).join(", ") : "", + vp.length > 0 ? vp.map(v => v.name).join(", ") : "", directors.length > 0 ? directors.map(director => director.name).join(", ") : "", leads.length > 0 ? leads.map(lead => lead.name).join(", ") : "", associates.length > 0 ? associates.map(associate => associate.name).join(", ") : "", @@ -173,16 +173,22 @@ const Teams = () => { "employee": [ { "@type": "Person", - "name": president?.name, - "jobTitle": "President", - "image": president?.pictureUrl, + "name": convenor?.name, + "jobTitle": "Convenor", + "image": convenor?.pictureUrl, }, - { + ...president.map(p => ({ + "@type": "Person", + "name": p.name, + "jobTitle": "President", + "image": p.pictureUrl, + })), + ...vp.map(v => ({ "@type": "Person", - "name": vp?.name, + "name": v.name, "jobTitle": "Vice President", - "image": vp?.pictureUrl, - }, + "image": v.pictureUrl, + })), ...leads.map(lead => ({ "@type": "Person", "name": lead.name, @@ -233,14 +239,22 @@ const Teams = () => { President {!fetched ? ( - - ) : president ? ( - +
+ + +
+ ) : president.length > 0 ? ( +
+ {president.map((pres, index) => ( + + ))} +
) : (

No president data available

)} @@ -251,14 +265,22 @@ const Teams = () => { Vice President {!fetched ? ( - - ) : vp ? ( - +
+ + +
+ ) : vp.length > 0 ? ( +
+ {vp.map((vice, index) => ( + + ))} +
) : (

No vice president data available

)} diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml index 80b4a28..b7dadf0 100644 --- a/public/sitemap-0.xml +++ b/public/sitemap-0.xml @@ -1,8 +1,8 @@ -https://githubsrmist.tech2025-10-17T15:21:39.369Zdaily0.7 -https://githubsrmist.tech/about2025-10-17T15:21:39.370Zdaily0.7 -https://githubsrmist.tech/contact2025-10-17T15:21:39.370Zdaily0.7 -https://githubsrmist.tech/events2025-10-17T15:21:39.370Zdaily0.7 -https://githubsrmist.tech/team2025-10-17T15:21:39.370Zdaily0.7 +https://githubsrmist.in2025-10-18T07:30:38.900Zdaily0.7 +https://githubsrmist.in/about2025-10-18T07:30:38.901Zdaily0.7 +https://githubsrmist.in/contact2025-10-18T07:30:38.901Zdaily0.7 +https://githubsrmist.in/events2025-10-18T07:30:38.901Zdaily0.7 +https://githubsrmist.in/team2025-10-18T07:30:38.901Zdaily0.7 \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml index d8fc66b..ea40ccd 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -1,4 +1,4 @@ -https://githubsrmist.tech/sitemap-0.xml +https://githubsrmist.in/sitemap-0.xml \ No newline at end of file