Skip to content

Commit b242e5c

Browse files
Astraxx04farhaanbukhsh
authored andcommitted
Workshop display layout change
1 parent 5a51ac0 commit b242e5c

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/program/schedule.njk

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ layout: base.njk
8080
{% endfor %}
8181

8282
{# Chunk into 2, 3, 2 manually #}
83-
{% set row1 = room_entries.slice(0, 2) %}
84-
{% set row2 = room_entries.slice(2, 5) %}
85-
{% set row3 = room_entries.slice(5, 7) %}
86-
{% set rows = [row1, row2, row3] %}
83+
{% set row1 = room_entries.slice(0, 3) %}
84+
{% set row2 = room_entries.slice(3, 6) %}
85+
{% set rows = [row1, row2] %}
8786

8887
<div class="flex-1 w-full flex flex-col">
8988
{% for row in rows %}
@@ -112,7 +111,7 @@ layout: base.njk
112111
</p>
113112
<p class="font-semibold text-md text-pycon-blue">
114113
{% for person in event.persons %}
115-
{{ person.public_name }}{% if not loop.last %}, {% endif %}
114+
{{ person.public_name | title }}{% if not loop.last %}, {% endif %}
116115
{% endfor %}
117116
</p>
118117
{% if event.url %}
@@ -154,10 +153,9 @@ layout: base.njk
154153
{% endfor %}
155154

156155
{# Chunk into 2, 3, 2 manually #}
157-
{% set row1 = room_entries.slice(0, 2) %}
158-
{% set row2 = room_entries.slice(2, 5) %}
159-
{% set row3 = room_entries.slice(5, 7) %}
160-
{% set rows = [row1, row2, row3] %}
156+
{% set row1 = room_entries.slice(0, 3) %}
157+
{% set row2 = room_entries.slice(3, 6) %}
158+
{% set rows = [row1, row2] %}
161159

162160
<div class="flex-1 w-full flex flex-col">
163161
{% for row in rows %}
@@ -186,7 +184,7 @@ layout: base.njk
186184
</p>
187185
<p class="font-semibold text-md text-pycon-blue">
188186
{% for person in event.persons %}
189-
{{ person.public_name }}{% if not loop.last %}, {% endif %}
187+
{{ person.public_name | title }}{% if not loop.last %}, {% endif %}
190188
{% endfor %}
191189
</p>
192190
{% if event.url %}
@@ -288,7 +286,7 @@ layout: base.njk
288286
<p class="mb-1 text-md line-clamp-2">{{ item.title }}</p>
289287
<p class="font-semibold text-md text-pycon-blue">
290288
{% for person in item.persons %}
291-
{{ person.public_name }}{% if not loop.last %}, {% endif %}
289+
{{ person.public_name | title }}{% if not loop.last %}, {% endif %}
292290
{% endfor %}
293291
</p>
294292
{% if item.url %}
@@ -331,7 +329,7 @@ layout: base.njk
331329
</p>
332330
<p class="font-semibold text-md text-pycon-blue">
333331
{% for person in event.persons %}
334-
{{ person.public_name }}{% if not loop.last %}, {% endif %}
332+
{{ person.public_name | title }}{% if not loop.last %}, {% endif %}
335333
{% endfor %}
336334
</p>
337335
{% if event.url %}

0 commit comments

Comments
 (0)