Skip to content

Commit 5610313

Browse files
author
Florent Biville
committed
Move paris 2020 to past events
1 parent 4fea84f commit 5610313

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

_data/events.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
upcoming:
1+
upcoming: []
2+
past:
23
- name: Paris 2020
34
url: https://paris2020.hack-commit-pu.sh/
45
img: hcp-paris-2020.png
5-
6-
past:
76
- name: Paris 2019
87
url: https://paris2019.hack-commit-pu.sh/
98
img: hcp-paris-2019.png

_includes/upcoming.html

+6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
<h2 class="section-heading">Upcoming events</h2>
77
<hr class="light">
88
</div>
9+
{% if site.data.events.upcoming.size == 0 %}
10+
<div class="grid_item col-12 no-events">
11+
<p>Follow our <a rel="noopener" target="_blank" class="page-scroll" href="https://twitter.com/{{site.twitter_username}}">Twitter account</a> to stay in touch!</p>
12+
</div>
13+
{% else %}
914
{% include _events.html events=site.data.events.upcoming %}
15+
{% endif %}
1016
</div>
1117
</div>
1218
</div>

css/main.scss

+4
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ header .header-content {
239239
.event {
240240
background-color: $theme-primary;
241241
}
242+
243+
.no-events a {
244+
text-decoration: underline;
245+
}
242246
}
243247

244248
#past {

0 commit comments

Comments
 (0)