File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ const sessions = defineCollection({
8989 start : z . string ( ) . nullable ( ) ,
9090 end : z . string ( ) . nullable ( ) ,
9191 website_url : z . string ( ) . url ( ) ,
92+ youtube_url : z . string ( ) . url ( ) . nullable ( ) ,
9293 sessions_in_parallel : z . array ( z . string ( ) ) . nullable ( ) ,
9394 sessions_after : z . array ( z . string ( ) ) . nullable ( ) ,
9495 sessions_before : z . array ( z . string ( ) ) . nullable ( ) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Layout from "../../layouts/Layout.astro";
44import Prose from " ../../components/prose/prose.astro" ;
55import { Separator } from " ../../components/separator/separator" ;
66import { formatInTimeZone } from " date-fns-tz" ;
7+ import { YouTube } from " @astro-community/astro-embed-youtube" ;
78
89export async function getStaticPaths() {
910 const sessions = await getCollection (" sessions" );
@@ -86,6 +87,13 @@ const nextSessionsOrdered = sameRoomNextSession
8687 <Content />
8788 </Prose >
8889
90+ { entry .data .youtube_url && (
91+ <Prose >
92+ <h2 >Recording</h2 >
93+ <YouTube id = { entry .data .youtube_url } />
94+ </Prose >
95+ )}
96+
8997 { entry .data .resources && (
9098 <>
9199 <br />
You can’t perform that action at this time.
0 commit comments