|
12 | 12 | </p> |
13 | 13 |
|
14 | 14 | <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 %} |
19 | 36 | {% 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 %} |
20 | 48 |
|
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> |
26 | 57 | </section> |
27 | 58 |
|
28 | 59 | </div> |
|
0 commit comments