on master help sign in
pages: amend ecosystem pages to match new metadata
090d3faMatilde Park
pages/marketplaces/[slug].js+7−2
@@ -41,9 +41,14 @@ export async function getStaticProps({ params }) {
41 );
41 );
42
42
43 const spotlights = getAllPosts(
43 const spotlights = getAllPosts(
44− ["title", "slug", "featured"],
44+ ["title", "slug", "featured-1", "featured-2", "featured-3"],
45 "ecosystem/spotlight"
45 "ecosystem/spotlight"
46+ ).filter(
47+ (e) =>
48+ e?.["featured-1"]?.title === post.title ||
49+ e?.["featured-2"]?.title === post.title ||
46− ).filter((e) => e.featured.includes(post.title));
50+ e?.["featured-3"]?.title === post.title
51+ );
47
52
48 let { index } = post?.extra || { index: null };
53 let { index } = post?.extra || { index: null };
49
54
pages/organizations/[slug].js+7−2
@@ -71,9 +71,14 @@ export async function getStaticProps({ params }) {
71 );
71 );
72
72
73 const spotlights = getAllPosts(
73 const spotlights = getAllPosts(
74− ["title", "slug", "featured"],
74+ ["title", "slug", "featured-1", "featured-2", "featured-3"],
75 "ecosystem/spotlight"
75 "ecosystem/spotlight"
76+ ).filter(
77+ (e) =>
78+ e?.["featured-1"]?.title === post.title ||
79+ e?.["featured-2"]?.title === post.title ||
76− ).filter((e) => e.featured.includes(post.title));
80+ e?.["featured-3"]?.title === post.title
81+ );
77
82
78 const applications = post.ships
83 const applications = post.ships
79 .map((ship) => {
84 .map((ship) => {
pages/podcasts/[slug].js+7−2
@@ -41,9 +41,14 @@ export async function getStaticProps({ params }) {
41 );
41 );
42
42
43 const spotlights = getAllPosts(
43 const spotlights = getAllPosts(
44− ["title", "slug", "featured"],
44+ ["title", "slug", "featured-1", "featured-2", "featured-3"],
45 "ecosystem/spotlight"
45 "ecosystem/spotlight"
46+ ).filter(
47+ (e) =>
48+ e?.["featured-1"]?.title === post.title ||
49+ e?.["featured-2"]?.title === post.title ||
46− ).filter((e) => e.featured.includes(post.title));
50+ e?.["featured-3"]?.title === post.title
51+ );
47
52
48 let { index } = post?.extra || { index: null };
53 let { index } = post?.extra || { index: null };
49
54