on master help sign in
ecosystem: attach matched post info
e2fe796Matilde Park
pages/ecosystem/index.js+1
@@ -356,6 +356,7 @@ export async function getStaticProps({}) {
356 ].filter((e) => e.title === post[feat].title)?.[0];
356 ].filter((e) => e.title === post[feat].title)?.[0];
357 post[feat].image = post[feat].image || matchedPost?.image;
357 post[feat].image = post[feat].image || matchedPost?.image;
358 post[feat].type = matchedPost?.type || "Podcast";
358 post[feat].type = matchedPost?.type || "Podcast";
359+ post[feat].matchedPost = matchedPost || null;
359 post[feat].content = JSON.stringify(
360 post[feat].content = JSON.stringify(
360 Markdown.parse({
361 Markdown.parse({
361 post: { content: post[feat].content },
362 post: { content: post[feat].content },