From 34f5fee87679a920f8dd4c89237381bac005f42f Mon Sep 17 00:00:00 2001 From: Daniele Irsuti Date: Sun, 3 Dec 2023 19:59:29 +0100 Subject: [PATCH] Add speaker slides page --- src/pages/speaker-slides.astro | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/pages/speaker-slides.astro diff --git a/src/pages/speaker-slides.astro b/src/pages/speaker-slides.astro new file mode 100644 index 00000000..69517c12 --- /dev/null +++ b/src/pages/speaker-slides.astro @@ -0,0 +1,37 @@ +--- +import { getCollection } from "astro:content"; +import { changeLanguage, t } from "i18next"; +import Heading from "../components/Heading.astro"; +import Section from "../components/Section.astro"; +import Layout from "../layouts/Layout.astro"; + +changeLanguage("en"); + +const speakers = await getCollection("speakers"); +--- + + +
+
+ +
+
+
+ { + speakers.map((speaker) => + speaker.data.slides ? ( +
+

{speaker.data.name}

+
    + {speaker.data.slides.map((slide: any) => ( +
  • + {slide.title} +
  • + ))} +
+
+ ) : null, + ) + } +
+