Skip to content

Commit e5484ee

Browse files
committed
Update keynoters.
1 parent 22c8608 commit e5484ee

File tree

13 files changed

+46
-17
lines changed

13 files changed

+46
-17
lines changed

src/components/sections/keynoters/keynoter.astro

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import type { ImageMetadata } from "astro";
3-
import { getCollection } from "astro:content";
43
import { Image } from "astro:assets";
54
import Person1 from "./placeholders/person-1.astro";
65
import Person2 from "./placeholders/person-2.astro";
@@ -10,7 +9,7 @@ import Person5 from "./placeholders/person-5.astro";
109
1110
export interface Props {
1211
name: string;
13-
slug: string;
12+
url: string;
1413
tagline?: string | undefined;
1514
image?: ImageMetadata;
1615
placeholder?: boolean | undefined;
@@ -20,7 +19,7 @@ export interface Props {
2019
2120
const {
2221
name,
23-
slug,
22+
url,
2423
tagline,
2524
image,
2625
placeholder,
@@ -31,9 +30,6 @@ const placeholders = [Person1, Person2, Person3, Person4, Person5];
3130
3231
const Placeholder =
3332
placeholders[Math.floor(Math.random() * placeholders.length)];
34-
35-
const entries = await getCollection("speakers");
36-
const isSpeaker = entries.some((entry) => entry.id === slug);
3733
---
3834

3935
<li class:list={["list-none rounded-2xl overflow-clip flex group", className]}>
@@ -61,10 +57,10 @@ const isSpeaker = entries.some((entry) => entry.id === slug);
6157
<p class="text-body-inverted">More keynoters coming soon</p>
6258
) : (
6359
<>
64-
{isSpeaker ? (
60+
{url ? (
6561
<h2 class="text-[#17223A] font-bold">
6662
<a
67-
href={`/speaker/${slug}`}
63+
href={url}
6864
class="text-2xl font-bold hover:underline"
6965
>
7066
{name}

src/components/sections/keynoters/keynoters.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const placeholders = Math.max(0, 5 - keynoters.length);
1919
.map((keynoter, _index) => (
2020
<Keynoter
2121
name={keynoter.data.name}
22-
slug={keynoter.slug}
22+
url={keynoter.data.url || ""}
2323
tagline={keynoter.data.tagline}
2424
image={keynoter.data.image}
2525
placeholder={false}
@@ -36,7 +36,7 @@ const placeholders = Math.max(0, 5 - keynoters.length);
3636
.map((_, _index) => (
3737
<Keynoter
3838
name=""
39-
slug=""
39+
url=""
4040
tagline=""
4141
placeholder={true}
4242
class:list={["w-full sm:w-[calc(50%-1rem)] md:w-[calc(30%-1rem)]"]}

src/components/ui/Markdown.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
import { marked } from 'marked';
3+
import { replaceYouTubeLinks } from "@utils/markdown";
34
45
interface Props {
56
content: string;
67
}
78
89
const { content } = Astro.props;
9-
const html = marked.parse(content);
10+
const html = marked.parse(await replaceYouTubeLinks(content) );
1011
---
1112

1213
<div class="prose prose-xl max-w-none" >

src/content/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const keynoters = defineCollection({
3030
schema: ({ image }) =>
3131
z.object({
3232
name: z.string(),
33+
url: z.string().optional(),
3334
tagline: z.string().optional(),
3435
image: image(),
3536
order: z.number(),

src/content/keynoters/brett.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Brett Cannon
33
image: ./brett.jpg
4-
slug: brett-cannon
4+
url: /speaker/brett-cannon
55
tagline: CPython Core Developer & the 5th most prolific PEP (co-)author
66
order: 1
77
---

src/content/keynoters/cultrepo.png

26 KB
Loading
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: '"Python: the Documentary" screening and Q&A'
3-
image: ./cultrepo.svg
3+
image: ./cultrepo.png
4+
url: /session/python-the-documentary-screening-and-q-a
45
tagline: 'Keynote panel and screening of "Python: the Documentary" by CultRepo (formerly Honeypot)'
56
order: 6
67
---

src/content/keynoters/nerea.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Nerea Luis
33
image: ./nerea.jpeg
4-
slug: nerea-luis
4+
url: /speaker/nerea-luis
55
tagline: Award-winning AI Consultant & Cofounder of Lumi Labs
66

77
order: 5

src/content/keynoters/petr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Petr Baudiš
33
image: ./petr.jpg
4-
slug: petr-baudis
4+
url: /speaker/petr-baudis
55
tagline: CTO & Co-founder of an AI SaaS deep tech scale-up
66
order: 5
77
---

src/content/keynoters/savannah.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Savannah Bailey
33
image: ./savannah.png
4-
slug: savannah-bailey
54
tagline: CPython Core Developer & JIT Maintainer
65
order: 3
76
---

0 commit comments

Comments
 (0)