on master help sign in
ecosystem: attach matched post info
commite2fe796ddd4bcaaaad3026dd1028cf6e5b7ea95c authorMatilde Park <matilde.park@urbit.org> dateMon 25 Jul 2022, 16:23 (4 years ago) parent3fb5bd1
1 file changed+1
pages/ecosystem/index.js+1
pages/ecosystem/index.js+1
@@ -356,6 +356,7 @@ export async function getStaticProps({}) {
356356 ].filter((e) => e.title === post[feat].title)?.[0];
357357 post[feat].image = post[feat].image || matchedPost?.image;
358358 post[feat].type = matchedPost?.type || "Podcast";
359+ post[feat].matchedPost = matchedPost || null;
359360 post[feat].content = JSON.stringify(
360361 Markdown.parse({
361362 post: { content: post[feat].content },