-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrencontres.html
58 lines (51 loc) · 2.31 KB
/
rencontres.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
---
layout: default
title: Toutes les rencontres
permalink: /rencontres/
---
<h1>{{ page.title }}</h1>
<div class="row">
<div class="col-12 col-lg-7">
{% comment %}
Inspiré de : https://stackoverflow.com/questions/19086284/jekyll-liquid-templating-how-to-group-blog-posts-by-year#:~:text=You%20can%20also%20group%20by,%22%25B%20%25Y%22%20.&text=This%20is%20great%2C%20thank%20you!
{% endcomment %}
{% for event in site.posts %}
{% capture this_year %}{{ event.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ event.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h2 id="{{ this_year }}-ref">{{this_year}}</h2>
<ul>
{% endif %}
{% assign speakers_ids = event.speakers | split: "," %}
{% assign speakers = site.speakers | where_exp:"speaker", "speakers_ids contains speaker.id" %}
<li>
<a href="{{ event.url | relative_url }}">
<span class="event-date">[{{ event.date | date: "%d/%m/%Y" }}]</span> <strong>{{ event.title }}</strong> par {{ speakers | map: "name" | join: " & "}}
</a>
</li>
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h2 id="{{ next_year }}-ref">{{next_year}}</h2>
<ul>
{% endif %}
{% endif %}
{% endfor %}
</div>
<div class="col-12 col-lg-5" style="padding-left: 30px;">
<p>
Les vidéos des présentations du JUG sont disponibles sur
<a href="https://www.youtube.com/channel/UCPu5I8miuaXw0YICfEDg_NA" target="_blank" rel="noreferrer noopener"><i class="fa-brands fa-youtube"></i> notre chaîne Youtube</a>
</p>
<iframe src="https://www.youtube-nocookie.com/embed/videoseries?list=PL4Z_Bm3ccVweSmVDF278Dm0OhwLJaSfX5"
title="YouTube video player"
width="560" height="315"
style="max-width: 100%;"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
</div>
</div>