Skip to content

Commit 6968ebf

Browse files
author
AFornio
committed
Fix: heading hierarchy and lazy load avatars in talks
1 parent 46ae590 commit 6968ebf

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

_layouts/talks.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ <h3 class="talks-year">{{ year.name }} ({{ year_count }})</h3>
3535
{% capture search_text %}{{ talk.title }} {{ meetup.title }} {{ speakers | join: ' ' }} {{ talk.description }}{% endcapture %}
3636

3737
<div class="talk" data-search="{{ search_text | downcase | strip_html | strip_newlines }}">
38-
<h3 id="{{ talk.title | slugify }}">
38+
<h4 id="{{ talk.title | slugify }}">
3939
<a href="{{ meetup.url }}#{{ talk.title | slugify }}">
4040
<span class="talk-title">{{ talk.title }}</span>
4141
</a>
42-
<p>
43-
{% for speaker in talk.speakers %}
44-
{% assign person = site.data.people[speaker] %}
45-
{% if person.github %}
46-
<img src="https://github.com/{{ person.github }}.png?size=30" alt="{{ person.name }}" style="border-radius: 50%; width: 30px; vertical-align: middle;"/>
47-
{% endif %}
48-
{{ person.name }}{% unless forloop.last %}, {% endunless %}
49-
{% endfor %}
50-
</p>
51-
</h3>
42+
</h4>
43+
<p>
44+
{% for speaker in talk.speakers %}
45+
{% assign person = site.data.people[speaker] %}
46+
{% if person.github %}
47+
<img src="https://github.com/{{ person.github }}.png?size=30" alt="{{ person.name }}" loading="lazy" style="border-radius: 50%; width: 30px; vertical-align: middle;"/>
48+
{% endif %}
49+
{{ person.name }}{% unless forloop.last %}, {% endunless %}
50+
{% endfor %}
51+
</p>
5252

5353
<p>{{ talk.description }}</p>
5454
</div>

0 commit comments

Comments
 (0)