Skip to content

Commit 8526def

Browse files
committed
Update to show talks page when no future talks
1 parent c229f8c commit 8526def

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

_layouts/default.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,31 @@ <h2 data-aos="fade-up" data-aos-delay="100">Elevating community-centered scienti
4545
</div>
4646
<div class="col-lg-5 d-flex flex-column justify-content-start hero-spotlight">
4747
{% assign talks = site.talks| where: "given", false | sort: 'order'%}
48-
{% for talk in talks limit: 1 %}
48+
{% assign talk = talks.first %}
4949
<div class="hero-card" data-aos="fade-left" data-aos-delay="200">
5050
<a href="/talks" class="hero-card-media">
5151
<img src="/images/talks/banner.png" alt="Community talk banner" />
5252
</a>
5353
<div class="hero-card-body">
5454
<span class="hero-tag">Community talk</span>
55+
{% if talk %}
5556
<h3 class="hero-card-title"><a href="{{ talk.url }}">{{ talk.title }}</a></h3>
5657
<p class="hero-card-meta">{{ talk.authors }}</p>
5758
<p class="hero-card-date">{{ talk.event_date }}</p>
59+
{% else %}
60+
<h3 class="hero-card-title"><a href="/talks">Workflow Community Talks</a></h3>
61+
<p class="hero-card-meta">A 30 minute virtual series highlighting workflow systems, research frameworks, and community practices</p>
62+
<p class="hero-card-date">Monthly talks open to all</p>
63+
{% endif %}
5864
</div>
5965
<div class="hero-card-footer">
66+
{% if talk %}
6067
<a href="{{ talk.url }}" class="hero-card-link">Learn more</a>
68+
{% else %}
69+
<a href="/talks" class="hero-card-link">View all talks</a>
70+
{% endif %}
6171
</div>
6272
</div>
63-
{% endfor %}
6473
</div>
6574
</div>
6675
</div>

index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ <h2>What's Happening in the Community</h2>
2727
<!-- COMMUNITY TALKS -->
2828
<article class="community-card">
2929
{% assign talks = site.talks| where: "given", false | sort: 'order'%}
30-
{% for talk in talks limit: 1 %}
30+
{% assign talk = talks.first %}
3131
<div class="post-img">
3232
<img src="/images/talks/banner.png" alt="" class="img-fluid">
3333
</div>
3434
<p class="post-category">COMMUNITY TALK</p>
35+
{% if talk %}
3536
<h2 class="title">
3637
<a href="{{ talk.url }}">{{ talk.title }}</a>
3738
</h2>
@@ -43,7 +44,19 @@ <h2 class="title">
4344
</p>
4445
</div>
4546
</div>
46-
{% endfor %}
47+
{% else %}
48+
<h2 class="title">
49+
<a href="/talks">Workflow Community Talks</a>
50+
</h2>
51+
<div class="d-flex align-items-center post-footer">
52+
<div class="post-meta">
53+
<p class="post-author">Highlighting workflow systems, research frameworks, and community practices</p>
54+
<p class="post-date">
55+
<a href="/talks">View all talks</a>
56+
</p>
57+
</div>
58+
</div>
59+
{% endif %}
4760
</article>
4861
</div>
4962

0 commit comments

Comments
 (0)