@@ -17,7 +17,7 @@ const Meshmates = () => {
17
17
graphql `query meshmates {
18
18
allMdx(
19
19
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" }}}
21
21
) {
22
22
nodes {
23
23
id
@@ -48,6 +48,15 @@ const Meshmates = () => {
48
48
}`
49
49
) ;
50
50
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
+
51
60
return (
52
61
< MeshMatesWrapper >
53
62
< Container >
@@ -72,13 +81,30 @@ const Meshmates = () => {
72
81
< Row style = { {
73
82
flexWrap : "wrap"
74
83
} } >
75
- { data . allMdx . nodes . map ( ( { id, frontmatter, fields } ) => (
84
+ { activeMeshMates . map ( ( { id, frontmatter, fields } ) => (
76
85
< Col $xs = { 12 } $sm = { 6 } $lg = { 4 } key = { id } >
77
86
< ProfileCard frontmatter = { frontmatter } cardlink = { fields . slug } />
78
87
</ Col >
79
88
) ) }
80
89
</ Row >
81
90
</ 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
+
82
108
< div className = "expect" >
83
109
< h5 > What to Expect </ h5 >
84
110
< h2 > Engaging with a MeshMate</ h2 >
0 commit comments