Skip to content

Commit a9ba13f

Browse files
authored
show multiple speakers on session page + fix trailing whitespace on session cards (#532)
1 parent 5a462f0 commit a9ba13f

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed

_includes/world/2025/components/session_card.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ <h3>{{ session.title }}</h3>
3939
{% if session.multiple_speakers %}
4040
<p>{{session.multiple_speakers}}</p>
4141
{% elsif include.speaker %}
42-
<p>{{ include.speaker.first_name }} {{ include.speaker.last_name }} {% if include.speaker.tagline %} - {{ include.speaker.tagline }} {% endif %} {% if include.speaker.company %}, {{ include.speaker.company }} {% endif %}</p>
42+
<p>
43+
{{ include.speaker.first_name }} {{ include.speaker.last_name }}
44+
{% if include.speaker.tagline %} - {{ include.speaker.tagline }}{% endif %}
45+
{%- if include.speaker.company -%}, {{ include.speaker.company }}{%- endif -%}
46+
</p>
4347
{% endif %}
4448
</div>
4549
</div>

_layouts/world/2025/session.html

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
{% assign filteredSpeakers = site.world_speakers | where_exp:"speaker", "speaker.path contains page.speaker" | where_exp: 'item', 'item.path contains "2025"' %}
66
{% assign speaker = filteredSpeakers | first %}
77

8+
{% assign filteredSpeakersSecond = site.world_speakers | where_exp:"speaker", "speaker.path contains page.second_speaker" | where_exp: 'item', 'item.path contains "2025"' %}
9+
{% assign second_speaker = filteredSpeakersSecond | first %}
10+
11+
{% assign filteredSpeakersThird = site.world_speakers | where_exp:"speaker", "speaker.path contains page.third_speaker" | where_exp: 'item', 'item.path contains "2025"' %}
12+
{% assign third_speaker = filteredSpeakersThird | first %}
13+
814
{% if page.location == "Effectenbeurs" %}
915
{% assign track = "Track 1" %}
1016
{% else %}
@@ -17,7 +23,7 @@
1723
{% assign day = 'Friday September 5' %}
1824
{% endif %}
1925

20-
<div class="session-page">
26+
<div class="session-page {% if page.multiple_speakers %}multiple-speakers{% endif %}">
2127
<div class="session-content">
2228
<h1>{{ page.title }}</h1>
2329
<p>{{ content }}</p>
@@ -28,7 +34,7 @@ <h1>{{ page.title }}</h1>
2834
</div>
2935
</div>
3036

31-
<div>
37+
<div class="session-speakers">
3238
{% if speaker %}
3339
{% include world/2025/components/speaker_card.html
3440
first_name=speaker.first_name
@@ -38,6 +44,28 @@ <h1>{{ page.title }}</h1>
3844
photo=speaker.image_path
3945
path=speaker.path
4046
%}
47+
{% endif %}
48+
49+
{% if page.second_speaker %}
50+
{% include world/2025/components/speaker_card.html
51+
first_name=second_speaker.first_name
52+
last_name=second_speaker.last_name
53+
tagline=second_speaker.tagline
54+
company=second_speaker.company
55+
photo=second_speaker.image_path
56+
path=second_speaker.path
57+
%}
58+
{% endif %}
59+
60+
{% if page.third_speaker %}
61+
{% include world/2025/components/speaker_card.html
62+
first_name=third_speaker.first_name
63+
last_name=third_speaker.last_name
64+
tagline=third_speaker.tagline
65+
company=third_speaker.company
66+
photo=third_speaker.image_path
67+
path=third_speaker.path
68+
%}
4169
{% endif %}
4270
</div>
4371
</div>

_sass/world/2025/modules/_session_page.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66
justify-content: space-between;
77
align-items: flex-start;
88

9+
&.multiple-speakers {
10+
flex-direction: column;
11+
12+
.session-content {
13+
width: 100%;
14+
}
15+
16+
.session-speakers {
17+
margin-top: 40px;
18+
display: flex;
19+
gap: 50px;
20+
21+
@include media(MobileScreens) {
22+
display: block;
23+
}
24+
25+
@include media(TabletScreens) {
26+
display: grid;
27+
grid-template-columns: repeat(2, 1fr);
28+
gap: 10px;
29+
}
30+
}
31+
}
32+
933
@include media(MobileAndTabletScreens) {
1034
display: block;
1135
padding: 0 5%;
@@ -59,6 +83,7 @@
5983
p {
6084
color: white;
6185
font-size: $x-large;
86+
line-height: 30px;
6287
font-variation-settings: $font-weight-700;
6388
}
6489
}

_world_sessions/2025/day-2/andrew-mcnamara.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: world/2025/session
33
title: "AI Agents at Scale"
4+
multiple_speakers: "Andrew Mcnamara & Charlie Lee"
45
speaker: andrew-mcnamara.md
56
second_speaker: charlie-lee.md
67
time: 15:45 - 16:15

0 commit comments

Comments
 (0)