Skip to content

Commit 849033b

Browse files
committed
Add end time to session page.
1 parent a83d99d commit 849033b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/components/schedule/session.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const hasFooter = true;
109109
"time title"
110110
"time footer";
111111

112-
grid-template-columns: 60px 1fr;
112+
grid-template-columns: 60px 1fr;https://github.com/EuroPython/website/pull/1250
113113
}
114114

115115
.room-info {

src/pages/session/[slug].astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export async function getStaticPaths() {
2121
const sessions = await getCollection("sessions");
2222
2323
const { entry } = Astro.props;
24+
console.log(entry)
2425
const slug = entry.id;
2526
const speakers = await getEntries(entry.data.speakers);
2627
@@ -97,6 +98,20 @@ const nextSessionsOrdered = sameRoomNextSession
9798
</>
9899
)
99100
}
101+
{
102+
entry.data.end && (
103+
<>
104+
<dt class="font-bold">End:</dt>
105+
<dd>
106+
{formatInTimeZone(
107+
entry.data.end,
108+
"Europe/Prague",
109+
"HH:mm 'on' dd MMMM yyyy",
110+
)}
111+
</dd>
112+
</>
113+
)
114+
}
100115
<dt class="font-bold">Duration:</dt>
101116
<dd>{entry.data.duration} minutes</dd>
102117
</dl>

0 commit comments

Comments
 (0)