-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (44 loc) · 2.01 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
61
62
63
64
---
layout: default
cover: 'title_pic.jpg'
---
<div class="home">
{% capture currentDate %}{{'now' | date: '%s' }}{% endcapture %}
<div class="clearfix">
<h1 class="event-time-heading fix-top">Future {% if site.event_label %} {{site.event_label}} {% else %} Events {% endif %} </h1>
<h2>We moved the website to <a href="https://www.berlin-crypto.de">berlin-crypto.de</a></h2>
{% for post in site.posts reversed %}
{% capture blogDate %}{{post.date | date: '%s' }}{% endcapture %}
{% if blogDate >= currentDate %}
<a href="{{ post.url | prepend: site.baseurl }}">
{% if post.cover %}
<div class="event-sqaure" style="background-image:url({{post.cover}});">
{% else %}
<div class="event-sqaure" style="background-image:url(http://evento.io/img/cover.jpg);">
{% endif %}
<h2>{{ post.title }} <span>{{ post.date | date: "%b %-d, %Y" }}</span></h2>
<div class='event-square-overlay'></div>
</div>
</a>
{% endif %}
{% endfor %}
</div>
<div class="clearfix">
<h1 class="event-time-heading">Past {% if site.event_label %} {{site.event_label}} {% else %} Events {% endif %} </h1>
{% for post in site.posts %}
{% capture blogDate %}{{post.date | date: '%s' }}{% endcapture %}
{% if blogDate < currentDate %}
<a href="{{ post.url | prepend: site.baseurl }}">
{% if post.cover %}
<div class="event-sqaure" style="background-image:url({{post.cover}});">
{% else %}
<div class="event-sqaure" style="background-image:url(http://app-beacon.com/wp-content/uploads/2015/05/events.jpg);">
{% endif %}
<h2>{{ post.title }} <span>{{ post.date | date: "%b %-d, %Y" }}</span></h2>
<div class='event-square-overlay'></div>
</div>
</a>
{% endif %}
{% endfor %}
</div>
</div>