|
10 | 10 | <div class="cd-timeline-content"> |
11 | 11 | <div class="row"> |
12 | 12 | <div class="col-sm-7 col-12"> |
13 | | - {% if event.groupId == 'key-open' %} |
14 | | - {% assign keynote = site.posts | where:"group",event.groupId %} |
15 | | - <h2 class="cd-timeline-content-title"><a class="keynote-link" href="{{ keynote[0].url }}">{{ event.title }}</a></h2> |
16 | | - {% elsif event.groupId == 'key-close' %} |
| 13 | + {% if event.groupId == 'key-open' or event.groupId == 'key-close' %} |
17 | 14 | {% assign keynote = site.posts | where:"group",event.groupId %} |
| 15 | + {% assign keynote_speaker_id = keynote[0].speakers[0] %} |
18 | 16 | <h2 class="cd-timeline-content-title"><a class="keynote-link" href="{{ keynote[0].url }}">{{ event.title }}</a></h2> |
| 17 | + <br/>{% include speaker_link.html speaker_id=keynote_speaker_id %} |
19 | 18 | {% else %} |
20 | 19 | <h2 class="cd-timeline-content-title">{{ event.title }}</h2> |
21 | 20 | <p>{{ event.description }}</p> |
@@ -78,31 +77,7 @@ <h3 class="h4 talk-title"><a href="{{ talk.url }}">{{ talk.title }}</a></h3> |
78 | 77 | </div> |
79 | 78 | <div class="col-12 d-none d-md-flex flex-wrap"> |
80 | 79 | {% for speaker_id in talk.speakers %} |
81 | | - {% assign speaker = site.data.speakers | where: 'id', speaker_id | first %} |
82 | | - {% if speaker %} |
83 | | - <div class="col-sm-3 text-center"> |
84 | | - <a href="/speakers/#{{ speaker.id }}-id"> |
85 | | - {% if event.groupId != 'key-open' and event.groupId != 'key-close' %} |
86 | | - <span>{{ speaker.name }} |
87 | | - {% if speaker.pronouns %} ({{ speaker.pronouns }}){% endif %} |
88 | | - </span> |
89 | | - {% endif %} |
90 | | - {% if speaker.image_alt and speaker.image_src %} |
91 | | - <img class="clip-circle-speaker" src="{{ speaker.image_src }}" alt="{{ speaker.image_alt }}"> |
92 | | - {% elsif speaker.image_src %} |
93 | | - <img class="clip-circle-speaker" src="{{ speaker.image_src }}" alt="Profile image for {{ speaker.name }}"> |
94 | | - {% else %} |
95 | | - <script> |
96 | | - placeholderImage("clip-circle-speaker", |
97 | | - " {{ speaker.name | escape }} ", |
98 | | - "/assets/img/nopics/nopic#.jpg", |
99 | | - "Random placeholder for {{ speaker.name | escape }}", |
100 | | - 10); |
101 | | - </script> |
102 | | - {% endif %} |
103 | | - </a> |
104 | | - </div> |
105 | | - {% endif %} |
| 80 | + {% include speaker_link.html speaker_id=speaker_id %} |
106 | 81 | {% endfor %} |
107 | 82 | </div> |
108 | 83 | </div> |
|
0 commit comments