-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (58 loc) · 1.99 KB
/
index.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
---
layout: default
title: JSdayBR
---
<div id="events" class="events">
<a class="events__anchor" id="events-anchor"></a>
<h1 class="events__title">Edições</h1>
<nav class="events-nav">
{% assign init = 'true' %}
{% for event in site.categories.events %}
{% assign currentdate = event.date | date: "%Y" %}
{% if currentdate != date %}
{% if init == 'true' %}
<a class="events-nav__item events-nav__item--current" href="#{{currentdate}}">{{currentdate}}</a>
{% assign init = 'false' %}
{% else %}
<a class="events-nav__item" href="#{{currentdate}}">{{currentdate}}</a>
{% endif %}
{% assign date = currentdate %}
{% endif %}
{% endfor %}
</nav>
<div class="events-list">
{% assign date = '' %}
{% assign init = 'true' %}
{% for event in site.categories.events %}
{% assign currentdate = event.date | date: "%Y" %}
{% if currentdate != date and init != 'true' %}
</section>
{% endif %}
{% if currentdate != date %}
{% if init == 'true' %}
<section id="{{currentdate}}" class="event_year current">
{% else %}
<section id="{{currentdate}}" class="event_year">
{% endif %}
{% assign date = currentdate %}
{% assign init = 'false' %}
{% endif %}
<article class='event'>
<div class="aside">
<h2>{{ event.title }}</h2>
<img src="{{ event.image }}" alt="{{ event.title }}">
</div>
<div class="content">
<span>{{ event.date | date: '%d.%m.%Y' }}</span>
<p>{{ event.content }}</p>
<p class="record">
<span>FICHA TÉCNICA</span>
<span class="values">
<b>{{ event.participants }}</b> PARTICIPANTES | <b>{{ event.talks }}</b> PALESTRAS | <b>{{ event.workshops }}</b> WORKSHOP | <b>{{ event.hours }}</b> DE CONTEÚDO
</span>
</p>
</div>
</article>
{% endfor %}
</div>
</div>