From 5fa700fdd75b54e1f0d5ce74f2892e76347df2a6 Mon Sep 17 00:00:00 2001 From: Vojta Holik Date: Thu, 16 Jan 2025 06:08:10 +0100 Subject: [PATCH] feat(ewd): add speaker talk description --- apps/epic-web/src/pages/conf/2025/[speaker].tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/epic-web/src/pages/conf/2025/[speaker].tsx b/apps/epic-web/src/pages/conf/2025/[speaker].tsx index 370337be6..7175e561f 100644 --- a/apps/epic-web/src/pages/conf/2025/[speaker].tsx +++ b/apps/epic-web/src/pages/conf/2025/[speaker].tsx @@ -40,7 +40,7 @@ export const getStaticProps: GetStaticProps = async ({params}) => { const video = await sanityClient.fetch( groq` - *[_type == "videoResource" && slug.current == $slug][0]{ + *[_type == "videoResource" && slug.current == $slug] | order(_createdAt desc)[0]{ _id, "_type": "tip", "slug": slug.current, @@ -51,7 +51,7 @@ export const getStaticProps: GetStaticProps = async ({params}) => { } `, { - slug: `conf-interview-${slugify(speaker.fullName)}`, // 'zZ4ErPnSL4ZWs2Du0ONL6z', + slug: `conf-interview-${slugify(speaker.fullName)}`, }, ) @@ -225,7 +225,12 @@ const ConfSpeakerTemplate: React.FC = ({ {format(new Date(session.startsAt), 'EEEE, h:mm a')}— {format(new Date(session.endsAt), 'h:mm a')} */} -
{session.title}
+

{session.title}

+ {session.description && ( +

+ {session.description} +

+ )} ) })}