forked from bettermtl/bettermtl.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (43 loc) · 2 KB
/
index.html
File metadata and controls
64 lines (43 loc) · 2 KB
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: 'https://pbs.twimg.com/profile_banners/2992908243/1443493753'
---
<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>
{% 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://static1.squarespace.com/static/54db2500e4b06f24f8c5a607/t/54dbbfc5e4b03442c79b422e/1423687627142/Start+up+Party.jpeg?format=2500w);">
{% 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>