Skip to content

Commit 5ba2799

Browse files
committed
speaker page update
1 parent 18e44b7 commit 5ba2799

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

_layouts/speaker.html

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
layout: base
33
---
44

5-
<article>
6-
<section class="grid">
5+
<article class="grid">
76
<img src="{{ page.image }}" alt="{{ page.title }}" class="headshot">
8-
<div>
7+
<section>
98
<hgroup>
109
<h1>{{ page.title }}</h1>
1110
{% if page.role %}
@@ -18,18 +17,15 @@ <h1>{{ page.title }}</h1>
1817
{% if page.social %}
1918
{% include social-links.html social=page.social %}
2019
{% endif %}
21-
</div>
22-
</section>
20+
<h2 style="font-size: 1rem; margin: 2rem 0 1rem 0; ">Participating In</h2>
21+
{% assign speaker_sessions = site.sessions | where_exp: "session", "session.performer contains page.slug" %}
22+
{% if speaker_sessions and speaker_sessions.size > 0 %}
23+
{% for session in speaker_sessions %}
24+
{% include session-card.html session=session %}
25+
{% endfor %}
26+
{% else %}
27+
<p>Sessions coming soon.</p>
28+
{% endif %}
29+
</section>
2330
</article>
2431

25-
<section>
26-
<h2>Participating in</h2>
27-
{% assign speaker_sessions = site.sessions | where_exp: "session", "session.performer contains page.slug" %}
28-
{% if speaker_sessions and speaker_sessions.size > 0 %}
29-
{% for session in speaker_sessions %}
30-
{% include session-card.html session=session %}
31-
{% endfor %}
32-
{% else %}
33-
<p>Sessions coming soon.</p>
34-
{% endif %}
35-
</section>

0 commit comments

Comments
 (0)