Skip to content

Commit 19eb67a

Browse files
committed
fix: use generated speaker avatar in keynote section
1 parent 9fd2886 commit 19eb67a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/speaker/Speakers.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getLocaleFromPath, useI18n } from '~/i18n/utils'
44
import schedule from '~/data/schedule.json'
55
import { getSpeakerProfile } from '~/utils/build/speaker'
66
import SpeakerGridCard from './SpeakerGridCard.astro'
7+
import { getAvatar } from '~/utils/build/speaker'
78
89
const { t } = useI18n(Astro.url.pathname)
910
const locale = getLocaleFromPath(Astro.url.pathname)
@@ -39,7 +40,7 @@ const speakersForGrid = schedule.speakers.filter(s => String(s.id ?? '').trim()
3940
return (
4041
<div class="mb-12">
4142
<div class="flex flex-col items-center gap-12 md:flex-row md:items-start">
42-
<img class="h-auto w-full max-w-56 shrink-0 rounded-full md:max-w-48" src={speaker.avatar} alt={name} />
43+
<img class="h-auto w-full max-w-56 shrink-0 rounded-full md:max-w-48" src={getAvatar(speaker)} alt={name} />
4344
<div>
4445
<h5 class="mb-6">{name}</h5>
4546
{bio && <p class="whitespace-pre-line">{bio}</p>}

0 commit comments

Comments
 (0)