Skip to content

Commit d3f6aee

Browse files
committed
use speaker_name and title as session header id
1 parent 8322e61 commit d3f6aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2025/src/components/Sessions/Session.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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={speaker_name} class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl">
36-
<a href={"#"+speaker_name} class="hover:underline">
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">
3737
{speaker_name}
3838
</a>
3939
</h3>

0 commit comments

Comments
 (0)