forked from path-cc/path-cc.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.html
66 lines (64 loc) · 2.73 KB
/
events.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
---
layout: sub-page
bodyClass: page-events-list
---
<h1 class="mb-4">Events</h1>
<div class="row mb-3">
{% include get/future_events.liquid %}
{% for event in future_events %}
<div class="col-12 col-md-6 mb-3">
<div class="news news-summary">
<div class="article-content">
{% if event.header_image %}
<a href="{{ event.url | relative_url }}" class="d-block">
<img class="w-100 image-card-cap rounded mb-3" style="aspect-ratio:3.5;" src="{{ event.header_image | relative_url }}">
</a>
{% endif %}
<h2 class="article-title">
<a href="{{ site.baseurl }}{{ event.url }}">{{ event.title }}</a>
</h2>
<h2 class="article-title">
{% if event.start_date != event.end_date %}
{% assign date = event.start_date | date: "%B %e" %}
{% assign date = event.end_date | date: "-%e, %Y" | prepend: date %}
{% else %}
{% assign date = event.start_date | date: "%B %e, %Y" %}
{% endif %}
<small class="text-muted">{{ date }}</small>
</h2>
<p>{{ event.excerpt | markdownify }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row">
<div class="col-12"><h1 class="text-muted mb-4">Past Events</h1></div>
{% include get/past_events.html %}
{% for event in past_events %}
<div class="col-12 col-md-6 mb-3">
<div class="news news-summary">
<div class="article-content">
{% if event.header_image %}
<a href="{{ event.url | relative_url }}" class="d-block">
<img class="w-100 image-card-cap rounded mb-3" style="aspect-ratio:3.5;" src="{{ event.header_image | relative_url }}">
</a>
{% endif %}
<h2 class="article-title">
<a href="{{ site.baseurl }}{{ event.url }}">{{ event.title }}</a>
</h2>
<h2 class="article-title">
{% if event.start_date != event.end_date %}
{% assign date = event.start_date | date: "%B %e" %}
{% assign date = event.end_date | date: "-%e, %Y" | prepend: date %}
{% else %}
{% assign date = event.start_date | date: "%B %e, %Y" %}
{% endif %}
<small class="text-muted">{{ date }}</small>
</h2>
<p>{{ event.excerpt | markdownify }}</p>
</div>
</div>
</div>
{% endfor %}
</div>