Skip to content

Commit 7c6f51b

Browse files
nikoshellegeakman
andauthored
Fix talk higlight (#1277)
Fix for missing h2 anchor. This is fixing talk highlight when we click on "View in the schedule". Co-authored-by: Ege Akman <me@egeakman.dev>
1 parent 4633428 commit 7c6f51b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/schedule/session.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const hasFooter = true;
8080
codeId={session.code}
8181
title={session.title}
8282
/>
83-
<h2>
83+
<h2 id=`session-${session.slug}`>
8484
{session.title}
8585
</h2>
8686

src/pages/schedule.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const days = await getCollection("days");
2626
<ScheduleDay day={day} />
2727
))
2828
}
29-
</Layout>
3029
<script>
3130
window.addEventListener('load', function() {
3231
function checkForAnchorAndHighlight() {
@@ -88,3 +87,4 @@ window.addEventListener('load', function() {
8887
window.addEventListener('hashchange', checkForAnchorAndHighlight);
8988
});
9089
</script>
90+
</Layout>

0 commit comments

Comments
 (0)