Skip to content

Commit 91b48f5

Browse files
authored
Add a grouped videos page for recent past conferences (#899)
* Initial plan * Add a page for recent conference videos --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 2c52780 commit 91b48f5

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

_includes/nav.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<a href="/subscribe" {% if page.url == '/subscribe/' %}class='active'{% endif %}>Newsletter</a> |
1111
<a href="/news" {% if page.url == '/news/' %}class='active'{% endif %}>Blog</a> |
1212
<a href="/about" {% if page.url == '/about/' %}class='active'{% endif %}>About</a> |
13+
<a href="/videos" {% if page.url == '/videos/' %}class='active'{% endif %}>Videos</a> |
1314
<a href="/resources" {% if page.url == '/resources/' %}class='active'{% endif %}>Resources</a>
1415
</ul>
1516
</div>

videos.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: default
3+
permalink: /videos/
4+
title: Software Testing Conference Videos
5+
---
6+
7+
<p>
8+
This page highlights the 10 most recent past conferences in <a href="/past/">our archive</a> that include an
9+
event video link. Use it to quickly find freely shared conference recordings, and let us know if we're missing one
10+
by updating <a href="https://github.com/TestingConferences/testingconferences.github.io/blob/main/_data/past.yml">past.yml</a>.
11+
</p>
12+
13+
{% assign video_conferences = site.data.past | where_exp: "conference", "conference.video_url" %}
14+
{% assign current_year = "" %}
15+
16+
{% for conference in video_conferences limit: 10 %}
17+
{% assign conference_year = conference.dates | split: ", " | last %}
18+
{% if conference_year != current_year %}
19+
{% assign current_year = conference_year %}
20+
<h2>{{ current_year }}</h2>
21+
<ul class="post-list">
22+
{% endif %}
23+
<li>
24+
<h3><a href="{{ conference.url }}">{{ conference.name }}</a></h3>
25+
<p>
26+
<i class="fa fa-calendar"></i> {{ conference.dates }}
27+
<br />
28+
<a href="{{ conference.video_url }}"><i class="fa fa-video-camera"></i> Watch Event Videos</a>
29+
</p>
30+
</li>
31+
{% assign next_conference = video_conferences[forloop.index] %}
32+
{% assign next_year = next_conference.dates | split: ", " | last %}
33+
{% if forloop.last or next_year != current_year %}
34+
</ul>
35+
{% endif %}
36+
{% endfor %}

0 commit comments

Comments
 (0)