Skip to content

Commit 7ed2953

Browse files
authored
Add attendee list to SIMPLE-Py event (#5)
* feat: add attendee list to SIMPLE-Py event Render an optional `attendees` front-matter list (plain names or name/affiliation/link maps) below the schedule, with matching styling. Assisted-by: ClaudeCode:claude-opus-4.8 * fix: correct attendee name Lundy Bernard Assisted-by: ClaudeCode:claude-opus-4.8 * chore: add more participants Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: more affiliations Signed-off-by: Henry Schreiner <henryfs@princeton.edu> --------- Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent fe2350e commit 7ed2953

3 files changed

Lines changed: 100 additions & 0 deletions

File tree

assets/css/extended/events.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,56 @@ a.session-title:hover {
217217
flex-wrap: wrap;
218218
}
219219

220+
/* ── Attendees ───────────────────────────────────────────────────────────── */
221+
.attendees {
222+
margin-top: 2.5rem;
223+
}
224+
225+
.attendees-title {
226+
font-size: 1.3rem;
227+
font-weight: 700;
228+
margin: 0 0 1rem;
229+
padding-bottom: 0.5rem;
230+
border-bottom: 2px solid var(--border);
231+
}
232+
233+
.attendee-list {
234+
list-style: none;
235+
padding: 0;
236+
margin: 0;
237+
display: grid;
238+
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
239+
gap: 0.4rem 1rem;
240+
}
241+
242+
.attendee-item {
243+
display: flex;
244+
align-items: baseline;
245+
gap: 0.5rem;
246+
}
247+
248+
.attendee-name {
249+
font-size: 0.95rem;
250+
font-weight: 600;
251+
}
252+
253+
a.attendee-name {
254+
text-decoration: underline;
255+
text-decoration-color: var(--border);
256+
text-underline-offset: 2px;
257+
color: inherit;
258+
}
259+
260+
a.attendee-name:hover {
261+
text-decoration-color: var(--primary);
262+
}
263+
264+
.attendee-affiliation {
265+
font-size: 0.8rem;
266+
font-style: italic;
267+
color: var(--secondary);
268+
}
269+
220270
/* ── Event banner ────────────────────────────────────────────────────────── */
221271
.event-banner {
222272
margin: 1.5rem 0;

content/events/simple-py.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,37 @@ schedule:
136136
duration: "2 hours 45 mins with coffee"
137137
- time: "5:30"
138138
title: "Close out"
139+
attendees:
140+
# Each entry is either a plain name or a map with name/affiliation/link.
141+
- name: "Henry Schreiner"
142+
affiliation: "Princeton University"
143+
link: "https://iscinumpy.dev"
144+
- name: "C.A.M. Gerlach"
145+
- name: "Cristian Le"
146+
affiliation: "Red Hat"
147+
- name: "Ethan Muldoon"
148+
affiliation: "Oregon State University"
149+
- name: "Iason Krommydas"
150+
- name: "Katelyn FitzGerald"
151+
affiliation: "NSF National Center for Atmospheric Research"
152+
- name: "Kurt McKee"
153+
affiliation: "University of Chicago, Globus"
154+
- name: "Lundy Bernard"
155+
- name: "Maryam Hosseini"
156+
- name: "Matt McCormick"
157+
- name: "Matthew Feickert"
158+
affiliation: "University of Wisconsin-Madison"
159+
- name: "Yaping Yang"
160+
- name: "Tarun Gandrathi"
161+
affiliation: "ZS Associates"
162+
- name: "Dan Schafer"
163+
affiliation: "Massachusetts General Hospital/Harvard Medical School"
164+
- name: "Jacob Wessel"
165+
affiliation: "Princeton University"
166+
- name: "Mike Germinger"
167+
affiliation: "University of Minnesota Duluth"
168+
- name: "Bradely Dice"
169+
affiliation: "NVIDIA"
139170
---
140171

141172
SIMPLE-Py is a two-day hands-on workshop on Scientific Python packaging,

layouts/events/single.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,25 @@ <h2 class="schedule-day-title">{{ .day }}</h2>
124124
</section>
125125
{{- end }}
126126
</div>
127+
{{- end }} {{- with .Params.attendees }}
128+
<div class="attendees">
129+
<h2 class="attendees-title">Attendees</h2>
130+
<ul class="attendee-list">
131+
{{- range . }} {{- $name := . }}{{ $affiliation := "" }}{{ $link := "" }}
132+
{{- if reflect.IsMap . }}{{ $name = .name }}{{ $affiliation = .affiliation
133+
}}{{ $link = .link }}{{- end }}
134+
<li class="attendee-item">
135+
{{- if $link }}
136+
<a class="attendee-name" href="{{ $link }}">{{ $name }}</a>
137+
{{- else }}
138+
<span class="attendee-name">{{ $name }}</span>
139+
{{- end }} {{- with $affiliation }}<span class="attendee-affiliation"
140+
>{{ . }}</span
141+
>{{- end }}
142+
</li>
143+
{{- end }}
144+
</ul>
145+
</div>
127146
{{- end }}
128147
</article>
129148
{{- end }}

0 commit comments

Comments
 (0)