forked from WeLoveSpeed/welovespeed.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspeakers.html
37 lines (36 loc) · 1.65 KB
/
speakers.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% assign nbspeakers = 0 %}
{% for conference in include.conferences %}
{% for names in conference.speakers %}
{% capture nbspeakers %}{{ nbspeakers | plus:1 }}{% endcapture %}
{%- endfor -%}
{%- endfor -%}
{% capture nbitems %}{{nbspeakers}}i{% endcapture %}
{% unless include.nowrap %}
<section id="speakers" class="section">
<div class="wrapper">
{% else %}
<div id="speakers">
{% endunless %}
<a class="sr-only" src="{% unless include.shorturl %}{{ page.baseurl | default:site.baseurl }}/{{ "programme" | t: include.locale }}{% endunless %}#conferences" >{% t Aller directement au programme détaillé %}</a>
<h{% if include.h1 %}1{% else %}2{% endif %} class="text-center">
{% t Intervenants %}
</h{% if include.h1 %}1{% else %}2{% endif %}>
<div class="grid-{{ site.data.gridsize[nbitems] }} text-center">
{% for conference in include.conferences %}
{% for names in conference.speakers %}
{% capture conf-url %}{% unless include.shorturl %}{{ page.baseurl | default:site.baseurl }}/{{ "programme" | t: include.locale }}{% endunless %}#{{conference.slug}}{% endcapture %}
{% assign speaker = site.data.speakers[names] %}
{% if speaker.display %}
<figure class="person">
<a title="{{ "Aller directement à l'intervention de %s" | t: include.locale | replace:"%s",speaker.name }}" href="{{ conf-url }}">{% cloudinary avatar {{ speaker.image | relative_url }} class="person-avatar" alt="" %}</a>
</figure>
{% endif %}
{%- endfor -%}
{%- endfor -%}
</div>
{% unless include.nowrap %}
</div>
</section>
{% else %}
</div>
{% endunless %}