-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathevents.html
87 lines (82 loc) · 3.06 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
layout: default
title: Events
css: /assets/css/event.css
js: /assets/js/events.js
---
{% assign numEvents = site.data.events | size %}
{% assign sorted_events = site.data.events | sort %}
<!-- Events -->
<div class="colorlib-blog">
<div class="container">
<div class="animate-box fade" id="events">
{% for event in sorted_events reversed %}
{% assign idx = forloop.index0 | modulo: 3 %}
{% if idx == 0 %}
<div class="event-card-deck">
{% endif %}
<div class="event-card" data-target="#event-modal-{{forloop.index}}">
<div class="card-image-slideshow" id="{{event[1].title | slugify }}-images">
{% for img_name in event[1].thumbnails %}
<div class="imgFade event-image">
<img src="/assets/img/events/{{img_name}}" alt="{{event[1].title}}">
</div>
{% endfor %}
{% if event[1].thumbnails.size > 1 %}
<a class="prev" onclick="changeImg(`{{event[1].title | slugify}}-images`, -1)">❮</a>
<a class="next" onclick="changeImg(`{{event[1].title | slugify}}-images`, 1)">❯</a>
{% endif %}
</div>
<div class="card-title">
<h2>{{event[1].title}}</h2>
</div>
<div class="card-links">
<button type="button" class="btn btn-primary btn-outline" data-toggle="modal" data-target="#event-modal-{{forloop.index}}">
Read More
</button>
</div>
</div>
{% if idx == 2 or forloop.last %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<!-- Modals -->
{% for event in sorted_events reversed %}
<div class="modal fade" id="event-modal-{{forloop.index}}" tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle" aria-hidden="true" style="overflow-y: auto;">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="exampleModalLongTitle">{{event[1].title}}</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<strong>Date: </strong>{{event[1].date}} <br>
<strong>SIG: </strong>{{event[1].sig}} <br>
{{event[1].description}} <br>
{%if event[1].links[0].url%}
<a href="{{event[1].links[0].url}}" class="btn btn-primary">{{event[1].links[0].title}}</a>
{%endif%}
{%if event[1].description_images %}
<br>
<h4>
Images
</h4>
{% for img_name in event[1].description_images %}
<img src="/assets/img/events/{{img_name}}" alt="{{event[1].title}}">
{% endfor %}
{%endif%}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
{% endfor %}