-
Notifications
You must be signed in to change notification settings - Fork 1
/
reunioes.html
74 lines (68 loc) · 3.5 KB
/
reunioes.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
64
65
66
67
68
69
70
71
72
73
74
---
title: "Reuniões da Comunidade NetPonto"
permalink: /reunioes/
layout: page
---
{% assign todaysDate = site.time | date: '%s' %}
<h3 style="font-size:1.6em; line-height: 3.1;">Próximas Reuniões</h3>
{% for meeting in site.meetings %}
{% assign meetingDate = meeting.date | date: '%s' %}
{% if meetingDate >= todaysDate %}
<div class="paragraph" style="text-align: left; display: block; font-size:1.20em; line-height: 0.9;">
<ul>
<li><strong>{{ meeting.date | date: "%d-%m-%Y" }}</strong> – <a href="{{ meeting.url | prepend: site.baseurl }}" title="Clique para ver a reunião {{ meeting.title }} na Comunidade NetPonto">{{ meeting.title }}</a></li>
</ul>
</div>
{% endif %}
{% endfor %}
<hr>
<h3 style="font-size:1.6em; line-height: 3.1;">Reuniões Anteriores</h3>
<h4 style="font-size:1.2em; line-height: 2;">Coimbra</h4>
{% for meeting in site.meetings %}
{% assign meetingDate = meeting.date | date: '%s' %}
{% if meetingDate < todaysDate and meeting.title contains 'Coimbra'%}
<div class="paragraph" style="text-align: left; display: block; font-size:1.20em; line-height: 0.9;">
<ul>
<li><strong>{{ meeting.date | date: "%d-%m-%Y" }}</strong> – <a href="{{ meeting.url | prepend: site.baseurl }}" title="Clique para ver a reunião {{ meeting.title }} na Comunidade NetPonto">{{ meeting.title }}</a></li>
</ul>
</div>
{% endif %}
{% endfor %}
<h4 style="font-size:1.2em; line-height: 2;">Lisboa</h4>
{% for meeting in site.meetings %}
{% assign meetingDate = meeting.date | date: '%s' %}
{% if meetingDate < todaysDate and meeting.title contains 'Lisboa'%}
<div class="paragraph" style="text-align: left; display: block; font-size:1.20em; line-height: 0.9;">
<ul>
<li><strong>{{ meeting.date | date: "%d-%m-%Y" }}</strong> – <a href="{{ meeting.url | prepend: site.baseurl }}" title="Clique para ver a reunião {{ meeting.title }} na Comunidade NetPonto">{{ meeting.title }}</a></li>
</ul>
</div>
{% endif %}
{% endfor %}
<h4 style="font-size:1.2em; line-height: 2;">Porto</h4>
{% for meeting in site.meetings %}
{% assign meetingDate = meeting.date | date: '%s' %}
{% if meetingDate < todaysDate and meeting.title contains 'Porto'%}
<div class="paragraph" style="text-align: left; display: block; font-size:1.20em; line-height: 0.9;">
<ul>
<li><strong>{{ meeting.date | date: "%d-%m-%Y" }}</strong> – <a href="{{ meeting.url | prepend: site.baseurl }}" title="Clique para ver a reunião {{ meeting.title }} na Comunidade NetPonto">{{ meeting.title }}</a></li>
</ul>
</div>
{% endif %}
{% endfor %}
<h4 style="font-size:1.2em; line-height: 2;">Outros Locais</h4>
{% for meeting in site.meetings %}
{% assign meetingDate = meeting.date | date: '%s' %}
{% if meetingDate < todaysdate %}
{% unless meeting.title contains 'Coimbra' or meeting.title contains 'Lisboa' or meeting.title contains 'Porto' %}
<div class="paragraph" style="text-align: left; display: block; font-size:1.20em; line-height: 0.9;">
<ul>
<li><strong>{{ meeting.date | date: "%d-%m-%Y" }}</strong> – <a href="{{ meeting.url | prepend: site.baseurl }}" title="Clique para ver a reunião {{ meeting.title }} na Comunidade NetPonto">{{ meeting.title }}</a></li>
</ul>
</div>
{% endunless %}
{% endif %}
{% endfor %}
{% comment %}
TODO: melhorar o código e talvez criar no front matter um campo com o local da reunião?... ver .md de teste reunião 997ª
{% endcomment %}