-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
56 lines (50 loc) · 1.88 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
---
layout: page
title: Blog
subtitle: Vienna Kaggle Meetup
---
<ul class="list-posts">
{% for post in site.posts %}
{% if post.categories contains "event" %}
{% else %}
<li class="post-teaser">
<a href="{{ post.url | prepend: site.baseurl }}">
<span class="post-teaser__title">{{ post.title }}</span>
<span class="post-teaser__date">{{ post.date | date: "%d %B %Y" }}</span>
</a>
<span class="post-teaser__excerpt">
{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
<a class="post-teaser__readmore" href="{{ post.url | prepend: site.baseurl }}">
[Read more]
</a>
</span>
</li>
{% endif %}
{% endfor %}
</ul>
<h1 id="events" class="page-title post-title">
<div class="page-title__text post-title__text">Featured Events</div>
<div class="page-title__subtitle post-title__subtitle">A curated list of events for Kagglers</div>
</h1>
<ul class="list-posts">
{% assign empty_events = true %}
{% assign curDate = site.time | date: '%s' %}
{% for post in site.posts %}
{% assign postStartDate = post.date | date: '%s' %}
{% if post.categories contains "event" and postStartDate >= curDate %}
<li class="post-teaser">
<a href="{{ post.url | prepend: site.baseurl }}">
<span class="post-teaser__title">{{ post.title }}</span>
<span class="post-teaser__date">{{ post.date | date: "%d %B %Y" }}</span>
</a>
<span class="post-teaser__excerpt">{{ post.excerpt | remove: '<p>' | remove: '</p>' }}</span>
</li>
{% assign empty_events = false %}
{% endif %}
{% endfor %}
{% if empty_events %}
<li class="empty-post-list">
It seems that there are no upcoming events.
</li>
{% endif %}
</ul>