Skip to content

Commit 37d2cd8

Browse files
committed
Fix event layout conditionals
1 parent cf6f069 commit 37d2cd8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

_layouts/event.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
<div class="row">
88
<div class="col-12">
99

10-
<p><div class="btn btn-secondary" style="cursor:inherit;">Virtual Meetup</div></p>
10+
<p><div class="btn btn-secondary" style="cursor:inherit;">
11+
{% if page.event_type and page.event_type != '' %}
12+
{{ page.event_type }}
13+
{% else %}
14+
Event
15+
{% endif %}
16+
</div></p>
1117

1218
<h1>{{ page.title }}
1319
<hr>
@@ -22,10 +28,10 @@ <h1>{{ page.title }}
2228
{% if page.human_date and page.human_date != '' %}
2329
{{ page.human_date }}
2430
{% endif %}
25-
{% if page.human_date and page.human_time != '' %}
31+
{% if page.human_time and page.human_time != '' %}
2632
| {{ page.human_time }}
2733
{% endif %}
28-
{% if page.human_date and page.session_length != '' %}
34+
{% if page.session_length and page.session_length != '' %}
2935
| {{ page.session_length }}
3036
{% endif %}
3137
</div>

0 commit comments

Comments
 (0)