Skip to content

Commit 68bf61b

Browse files
authored
Merge pull request #117 from shuds13/main
Update talks layout so next is first
2 parents 54606fb + d31dfee commit 68bf61b

File tree

1 file changed

+40
-9
lines changed

1 file changed

+40
-9
lines changed

page_talks.html

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,48 @@
1212
</p>
1313

1414
<section id="testimonials" class="testimonials bg-light" style="padding-top: 0;">
15-
<h3 class="mb-4">Upcoming Talks</h3>
16-
{% assign upcoming = site.talks | where: "given", false | sort: 'talk_number' | reverse %}
17-
{% for talk in upcoming %}
18-
{% include talk_card.html talk=talk %}
15+
16+
<!-- Next Talk Section -->
17+
{% assign upcoming = site.talks | where: "given", false | sort: 'talk_number' %}
18+
{% assign next_talk = upcoming.first %}
19+
{% if next_talk %}
20+
<div class="next-talk-section mb-5">
21+
<h3 class="mb-4" style="color: #db8e1b;">Next Talk</h3>
22+
<div style="border: 2px solid #db8e1b; border-radius: 10px; padding: 20px; background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);">
23+
{% include talk_card.html talk=next_talk %}
24+
</div>
25+
</div>
26+
{% endif %}
27+
28+
<!-- Future Talks Section -->
29+
{% assign future_talks = site.talks | where: "given", false | sort: 'talk_number' %}
30+
{% assign has_future_talks = false %}
31+
{% for talk in future_talks %}
32+
{% unless talk.talk_number == next_talk.talk_number %}
33+
{% assign has_future_talks = true %}
34+
{% break %}
35+
{% endunless %}
1936
{% endfor %}
37+
38+
{% if has_future_talks %}
39+
<div class="future-talks-section mb-5">
40+
<h3 class="mb-4">Future Talks</h3>
41+
{% for talk in future_talks %}
42+
{% unless talk.talk_number == next_talk.talk_number %}
43+
{% include talk_card.html talk=talk %}
44+
{% endunless %}
45+
{% endfor %}
46+
</div>
47+
{% endif %}
2048

21-
<h3 class="mb-4 mt-5">Previous Talks</h3>
22-
{% assign previous = site.talks | where: "given", true | sort: 'talk_number' | reverse %}
23-
{% for talk in previous %}
24-
{% include talk_card.html talk=talk %}
25-
{% endfor %}
49+
<!-- Previous Talks Section -->
50+
<div class="previous-talks-section">
51+
<h3 class="mb-4 mt-5">Previous Talks</h3>
52+
{% assign previous = site.talks | where: "given", true | sort: 'talk_number' | reverse %}
53+
{% for talk in previous %}
54+
{% include talk_card.html talk=talk %}
55+
{% endfor %}
56+
</div>
2657
</section>
2758

2859
</div>

0 commit comments

Comments
 (0)