Skip to content

Commit 964f028

Browse files
nikoshellegeakman
andauthored
Update keynoters. (#1278)
![image](https://github.com/user-attachments/assets/16e893ce-ba73-416e-96c5-1f9ebc49eeb8) --------- Co-authored-by: Ege Akman <me@egeakman.dev>
1 parent fefe4fd commit 964f028

File tree

11 files changed

+14
-16
lines changed

11 files changed

+14
-16
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/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

src/content/keynoters/documentary.mdx

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
---

src/content/keynoters/sebastian.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Sebastián Ramírez (tiangolo)
33
image: ./sebastian.jpg
4-
slug: sebastian-ramirez
4+
url: /speaker/sebastian-ramirez
55
tagline: Creator of FastAPI, Typer, and other open source tools
66
order: 2
77
---

src/content/pages/sponsorship/sponsor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ toc: false
2222
Join **EuroPython 2025 from 14 – 20 July** at the Prague Congress Centre (PCC) to connect, showcase your company, and shape the future of Python!
2323

2424
<YouTube id="oW8FHL4PiuI" alt="Hear from our sponsors at EuroPython 2023" />
25+
https://www.youtube.com/watch?v=oW8FHL4PiuI
2526
<figcaption>Hear from our sponsors at EuroPython 2023</figcaption>
2627

2728
Explore the benefits of sponsoring EuroPython:

0 commit comments

Comments
 (0)