Skip to content

Commit 63ef106

Browse files
authored
Merge pull request #90 from CloudNativeLinz/fix/broken-reg-link
Update registration link display logic to show status when not open
2 parents 8a2f33b + df66d60 commit 63ef106

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_layouts/event.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ <h1>{{ page.title }}</h1>
1818
<center>
1919
<span class="label">{{ page.date }}</span>
2020
<span class="label">hosted by {{ page.host }}</span>
21-
<span class="label"><a href="{{ page.event_link }}">registration link</a></span>
21+
<span class="label">
22+
{% if page.event_link == nil or page.event_link == "" %}
23+
registration not yet open
24+
{% else %}
25+
<a href="{{ page.event_link }}">registration link</a>
26+
{% endif %}
27+
</span>
2228
{% if page.participants != nil and page.participants != empty %}
2329
<span class="label">participants: {{ page.participants }}</span>
2430
{% endif %}

0 commit comments

Comments
 (0)