-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathspeakers.html
41 lines (41 loc) · 1.95 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
38
39
40
41
{% comment %} Count speakers {% endcomment %}
{% capture nowUnix %}{{ site.time | date: '%s'}}{% endcapture %}
{% include compute_speakers.html year=include.year conferences=include.conferences %}
{% capture nbItemGrid %}{{ nbSpeakersMax }}i{% endcapture %}
{% comment %} Display speakers {% endcomment %}
{% unless include.nowrap %}
<section id="speakers" class="section">
<div class="wrapper">
{% else %}
<div id="speakers">
{% endunless %}
<h{% if include.h1 %}1{% else %}2{% endif %} class="text-center">
<span class="inline-not-large">{% t Intervenant‧es %}</span><span class="inline-large">{% t Intervenants et Intervenantes %}</span><br>
{% if site.current_edition == include.year -%}
<!--span class="text-center text-xs speakers-subtitle">
{% t D'autres annonces à venir ! %}
</span-->
{%- endif %}
</h{% if include.h1 %}1{% else %}2{% endif %}>
<div class="person-grid text-center randomize">
{%- for name in visibleSpeakers -%}
{% assign speaker = yearSpeakers[name] %}
<figure class="person {{ name }}">
{% capture speakerUrl %}{% unless include.shorturl %}{{ page.baseurl | default:site.baseurl }}/{{ include.year }}/{{ "interventions" | t: include.locale }}/{% endunless %}#{{ name }}{% endcapture %}
<a title="{{ "Détails de l'intervention de %s" | t: include.locale | replace:"%s",speaker.name }}" href="{{ speakerUrl }}">
{% cloudinary avatar {{ speaker.image | relative_url }} class="person-avatar" alt="" loading="lazy" %}</a>
{% include person-links.html urls=speaker.urls %}
</figure>
{%- endfor -%}
{%- for i in (1..nBIncognito) -%}
<figure class="person">
{% cloudinary avatar {{ "/assets/images/speakers/incognito.png" | relative_url }} class="person-avatar" alt="" loading="lazy" %}
</figure>
{%- endfor -%}
</div>
{% unless include.nowrap %}
</div>
</section>
{% else %}
</div>
{% endunless %}