Skip to content

Commit d006c4f

Browse files
committed
use instead session_id
1 parent 98a5180 commit d006c4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2025/src/components/Sessions/Session.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Props = {
1111
image_url?: string;
1212
};
1313
14-
const { speaker_name, title, abstract, self_introduction, image_url } =
14+
const { session_id,speaker_name, title, abstract, self_introduction, image_url } =
1515
Astro.props;
1616
---
1717

@@ -32,8 +32,8 @@ const { speaker_name, title, abstract, self_introduction, image_url } =
3232
</div>
3333
<div class="flex-1 text-center md:text-left">
3434
<div class="mb-3">
35-
<h3 id={encodeURIComponent(`${speaker_name}-${title}`)} class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl">
36-
<a href={`#${encodeURIComponent(`${speaker_name}-${title}`)}`} class="hover:underline">
35+
<h3 id={session_id} class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl">
36+
<a href={`#${session_id}`} class="hover:underline">
3737
{speaker_name}
3838
</a>
3939
</h3>

0 commit comments

Comments
 (0)