Skip to content

Commit

Permalink
Update events template to hide speaker when not set and add location …
Browse files Browse the repository at this point in the history
…option.
  • Loading branch information
jcohen02 committed Jun 10, 2024
1 parent 3994eb4 commit 7196ada
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _pages/events/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,16 @@ show that there are no future events.
{% endif %}
</strong>
</p>
{% if event.speaker and event.speaker != "" %}
<p style="font-size: 0.7em; margin-bottom: 0;"><strong>Speaker: </strong>
{{ event.speaker }}{% if event.affiliation and event.affiliation != "" %}, {{ event.affiliation }}{% endif %}
</p>
{% endif %}
{% if event.location and event.location != "" %}
<p style="font-size: 0.7em; margin-bottom: 0;"><strong>Location: </strong>
{{ event.location }}
</p>
{% endif %}
<p style="font-size: 0.7em; margin-bottom: 0;"><strong>Date: </strong>{{ event.date | date: "%A %e %B %Y" }},
{% if event.time-range-link and event.time-range-link != "" %}
<a href="{{ event.time-range-link }}" target="_blank" rel="noopener noreferrer">{{ event.time-range }}</a>
Expand Down

0 comments on commit 7196ada

Please sign in to comment.