-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathevent_layout.html
More file actions
90 lines (73 loc) · 3.02 KB
/
Copy pathevent_layout.html
File metadata and controls
90 lines (73 loc) · 3.02 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{% comment %}
event_layout.html (event):
Generate a layout for an event.
Creates a basic layout for an event object. For every unique date on which
an event happens the date will be displayed. Events with same dates get the
date displayed only once. This include is to be used inside a for loop in
association with events_arrary_generator.html.
Before the for loop: current_date = "" must be set in the outer scope!
See index.html, line 57 for example of usage.
Parameters:
event: event object
Event object containing yml variables and content.
Returns:
{% endcomment %}
{% assign post = include.event %}
<div class="col-lg-12 no-padding-x">
<div>
{% unless post.date == current_date %}
<p class="date"><i class="far fa-calendar-alt"></i> {{ post.date | date: "%e %B %Y" }}</p>
{% endunless %}
{% assign current_date = post.date %}
{% include get_project.html event = post %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p class="text-capitalize"><i class="fas fa-map-marker-alt"></i> {{ post.category }}</p>
{% unless forloop.last %}<hr class="chapter__divider-left"/>{% endunless %}
</div>
</div>
{% comment %}
{% include get_host_sponsor.html event = post %}
<div class="upcoming__col col-md-12 no-padding-x">
<div class="row">
<div class="col-12">
{% unless post.date == current_date %}
<p class="upcoming__date">
<i class="upcoming__icon far fa-calendar-alt"></i>{{ post.date | date: "%e %B %Y" }}, {{ post.time }}
</p>
{% endunless %}
{% assign current_date = post.date %}
{% include get_project.html event = post %}
<img class="upcoming__project-logo" src="{{ site.baseurl }}/{{ project.logo }}" alt="Project logo">
<h2 class="upcoming__event-title"> {{ post.title }}</h2>
</div>
</div>
<div class="row">
<div class="col-12">
{% if post.level %}
<h2 class="upcoming__event-subtitle">Level: {{ post.level }}</h2>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-12">
<div class="row">
<div class="col-6 no-padding-x">
<div class="col-12 no-padding-x">
<p class="upcoming__paragraph">
<i class="upcoming__icon fas fa-map-marker-alt"></i>{{ sponsor.address }}
</p>
</div>
</div>
<div class="col-6 no-padding-x text-right my-auto">
<a class="upcoming__button btn" href="{{ post.url }}">
<i class="upcoming__button-icon fas fa-info-circle"></i>
</a>
</div>
</div>
{% unless forloop.last %}
<hr class="upcoming__divider">
{% endunless %}
</div>
</div>
</div>
{% endcomment %}