@@ -55,6 +55,11 @@ export async function getStaticProps({ params }) {
55 "podcasts",
55 "podcasts",
58+ const articles = getAllPosts(
59+ ["title", "image", "date", "publication", "author", "slug"],
58 const organizations = getAllPosts(
63 const organizations = getAllPosts(
59 ["title", "image", "slug"],
64 ["title", "image", "slug"],
60 "organizations"
65 "organizations"
@@ -86,6 +91,7 @@ export async function getStaticProps({ params }) {
86 ...organizations.map((e) => ({ ...e, type: "Organization" })),
91 ...organizations.map((e) => ({ ...e, type: "Organization" })),
87 ...podcasts.map((e) => ({ ...e, type: "Podcast" })),
92 ...podcasts.map((e) => ({ ...e, type: "Podcast" })),
88 ...marketplaces.map((e) => ({ ...e, type: "Marketplace" })),
93 ...marketplaces.map((e) => ({ ...e, type: "Marketplace" })),
94+ ...articles.map((e) => ({ ...e, type: "Article" })),
89 ].filter((e) => e.title === post[feat].title)?.[0];
95 ].filter((e) => e.title === post[feat].title)?.[0];
90 post[feat].image = post[feat]?.image || matchedPost?.image || null;
96 post[feat].image = post[feat]?.image || matchedPost?.image || null;
91 post[feat].type = matchedPost?.type || "Podcast";
97 post[feat].type = matchedPost?.type || "Podcast";