Skip to content

Commit

Permalink
Add speaker gallery includes
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jan 7, 2025
1 parent 2f32fcd commit 3070006
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _includes/speaker_gallery_section.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{%- assign sessions = include.sessions | default: page.sessions -%}
{%- assign speakers = '' | split: '' -%}
{%- for session in include.sessions -%}
{%- for name in session.speaker -%}
{%- assign speaker = site.people | find: "title", name -%}
{%- if speaker -%}
{%- unless speakers contains speaker -%}
{%- assign speakers = speakers | push: speaker -%}
{%- endunless -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{%- assign speakers = speakers | sort_natural: "title" -%}
<div class="section">
<div class="section-header">
<h2>Meet our speakers</h2>
</div>
{% include people_list.html people=speakers gallery=true %}
</div>

0 comments on commit 3070006

Please sign in to comment.