Skip to content

Commit 0c4fa7e

Browse files
committed
Do not render speaker bio if it is empty
1 parent 6b365a7 commit 0c4fa7e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/app/conf/2025/speakers/[id]/page.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,14 @@ export default function SpeakerPage({ params }: SpeakerProps) {
6969
/>
7070
</div>
7171

72-
<p className="typography-body-lg mx-auto box-content max-w-[800px] px-4 py-8 lg:px-8 lg:py-16 xl:px-24 xl:pb-24 xl:text-[32px]">
73-
{formatDescription(speaker.about)}
74-
</p>
75-
76-
<Hr />
72+
{speaker.about && (
73+
<>
74+
<p className="typography-body-lg mx-auto box-content max-w-[800px] px-4 py-8 lg:px-8 lg:py-16 xl:px-24 xl:pb-24 xl:text-[32px]">
75+
{formatDescription(speaker.about)}
76+
</p>
77+
<Hr />
78+
</>
79+
)}
7780

7881
<h3 className="typography-h2 my-8 px-2 sm:px-3 lg:my-16">
7982
2025 Sessions

src/pages/tags/_meta.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { createCatchAllMeta } from "nextra/catch-all"
22
import { getStaticPaths } from "./[slug].mdx"
33

44
export default () => {
5-
// @ts-expect-error -- fixme
5+
// This is logging an error
6+
// `Attempted import error: 'getStaticPaths' is not exported from './[slug].mdx'`
7+
// but the pages work?
68
const { paths } = getStaticPaths() as unknown as {
79
paths: { params: { slug: string } }[]
810
}

0 commit comments

Comments
 (0)