Skip to content

Commit 25cebe8

Browse files
committed
Fix styling problem caused by stripped whitespace
The `-%}` stipped the whitespace between `talk__speaker-img` and `talks-table__speaker-img--small`, causing it to be `talk__speaker-imgtalks-table__speaker-img--small` in the final output. With that class name no styling applied. This caused three or more speakers not showing up properly.
1 parent 80e5aa7 commit 25cebe8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎_includes/speakers.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
src="{{speaker.img}}"
3535
{% endif -%}
3636
alt="{{speaker.name}}"
37-
class="talk__speaker-img{% if speaker_count > 2 -%} talks-table__speaker-img--small{% endif -%}"
37+
class="talk__speaker-img{% if speaker_count > 2 %} talks-table__speaker-img--small{% endif -%}"
3838
onerror="if (!this.src.endsWith('_no_image.png')) this.src = '/img/speaker_no_image.jpg'">
3939
<span class="talk__speaker-name" itemprop="name">{{speaker.name}}</span>
4040
</li>

0 commit comments

Comments
 (0)