@@ -17,7 +17,7 @@ const Meshmates = () => {
1717 graphql `query meshmates {
1818 allMdx(
1919 sort: {frontmatter: {name: ASC}}
20- filter: {fields: {collection: {eq: "members"}}, frontmatter: {meshmate: {eq: "yes"}, emeritus: {ne: "yes"}, status: { ne: "Inactive" }}}
20+ filter: {fields: {collection: {eq: "members"}}, frontmatter: {meshmate: {eq: "yes"}, status: { ne: "Inactive" }}}
2121 ) {
2222 nodes {
2323 id
@@ -48,6 +48,15 @@ const Meshmates = () => {
4848}`
4949 ) ;
5050
51+ // Separate active and emeritus MeshMates
52+ const activeMeshMates = data . allMdx . nodes . filter (
53+ ( { frontmatter } ) => frontmatter . emeritus !== "yes"
54+ ) ;
55+
56+ const emeritusMeshMates = data . allMdx . nodes . filter (
57+ ( { frontmatter } ) => frontmatter . emeritus === "yes"
58+ ) ;
59+
5160 return (
5261 < MeshMatesWrapper >
5362 < Container >
@@ -72,13 +81,30 @@ const Meshmates = () => {
7281 < Row style = { {
7382 flexWrap : "wrap"
7483 } } >
75- { data . allMdx . nodes . map ( ( { id, frontmatter, fields } ) => (
84+ { activeMeshMates . map ( ( { id, frontmatter, fields } ) => (
7685 < Col $xs = { 12 } $sm = { 6 } $lg = { 4 } key = { id } >
7786 < ProfileCard frontmatter = { frontmatter } cardlink = { fields . slug } />
7887 </ Col >
7988 ) ) }
8089 </ Row >
8190 </ div >
91+
92+ { emeritusMeshMates . length > 0 && (
93+ < div className = "meshmates-grid emeritus-section" >
94+ < h1 > Emeritus MeshMates </ h1 >
95+ < p > These MeshMates have previously served the Layer5 community with distinction. While they are no longer active in the MeshMate program, their contributions and impact continue to influence our community. </ p >
96+ < Row style = { {
97+ flexWrap : "wrap"
98+ } } >
99+ { emeritusMeshMates . map ( ( { id, frontmatter, fields } ) => (
100+ < Col $xs = { 12 } $sm = { 6 } $lg = { 4 } key = { id } >
101+ < ProfileCard frontmatter = { frontmatter } cardlink = { fields . slug } />
102+ </ Col >
103+ ) ) }
104+ </ Row >
105+ </ div >
106+ ) }
107+
82108 < div className = "expect" >
83109 < h5 > What to Expect </ h5 >
84110 < h2 > Engaging with a MeshMate</ h2 >
0 commit comments