forked from WeLoveSpeed/welovespeed.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconferences.html
64 lines (63 loc) · 2.94 KB
/
conferences.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<section class="section talks">
<div class="wrapper">
<h2 class="text-center">
{% t Aperçu %}
</h2>
{% for conference in include.conferences %}
<hr id="{{ conference.slug }}">
{% if include.locale == "en_US" and conference.en_US %}
{% assign verbatim = conference.en_US %}
{% else %}
{% assign verbatim = conference.fr_FR %}
{% endif %}
<article class="conference">
<h3>
{{ verbatim.title }} <a href="#{{ conference.slug }}" class="text-xs">#</a>
</h3>
{{ verbatim.description | markdownify }}
{% if verbatim.transcript or verbatim.slides %}
<p class="text-center">
{% if verbatim.transcript %}
<a class="button" data-text="{% t lire la version textuelle %}" href="{{ verbatim.transcript }}" title="{% t lire la version textuelle %}"><span class="button-inner">{% t lire la version textuelle %}</span></a>
{% endif %}
{% if verbatim.slides %}
<a class="button" data-text="{% t consulter le support %}" href="{{ verbatim.slides }}" title="{% t consulter le support %}"><span class="button-inner">{% t consulter le support %}</span></a>
{% endif %}
</p>
{% endif %}
{% for name in conference.speakers %}
{% assign speaker = site.data.speakers[name] %}
{% if speaker.display %}
{% if include.locale == "en_US" and speaker.en_US %}
{% assign speakatim = speaker.en_US %}
{% else %}
{% assign speakatim = speaker.fr_FR %}
{% endif %}
<section class="conference-speaker text-sm">
<figure class="conference-speaker-pic" role="group">
{% cloudinary avatar {{ speaker.image | relative_url }} alt="" %}
<figcaption class="sr-only">{{ speaker.name }}</figcaption>
</figure>
<h3 class="conference-speaker-name">
{% assign speakerCount = conference.speakers | size %}
{% unless speakerCount > 1 %}
<span class="text-xs">{% t Présenté %}{% unless speaker.locale == include.locale %}{{ " en anglais" | t: page.locale }}{% endunless %} {%t par %}</span><br>
{% else %}
<span class="text-xs">{% t Animé %}{% unless speaker.locale == include.locale %}{{ " en anglais" | t: page.locale }}{% endunless %} {%t par %}</span><br>
{% endunless %}
{% capture person %}<em>{{ speaker.name }}</em>{% endcapture %}
{% if speaker.url %}
{% capture person %}<a href="{{ speaker.url }}">{{ person }}</a>{% endcapture %}
{% endif %}
{{ person }}
</h3>
<p class="conference-speaker-description">
{{ speakatim.bio | markdownify }}
</p>
</section>
{% endif %}
{%- endfor -%}
</article>
{%- endfor -%}
</div>
</section>