Skip to content

Commit 85fcffd

Browse files
authored
[bmore-2025] Fix speaker js, update welcome page post-event (#15224)
1 parent 3177404 commit 85fcffd

File tree

3 files changed

+47
-29
lines changed

3 files changed

+47
-29
lines changed

content/events/2025-baltimore/speakers.md

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,59 @@ Description = "Meet our speakers for DevOpsDays Baltimore 2025"
1717
<script>
1818
const ul = document.getElementById('speakers');
1919
const list = document.createDocumentFragment();
20-
const url = 'https://talks.devopsdays.org/api/events/devopsdays-baltimore-2025/speakers/?limit=50';
20+
const url = 'https://talks.devopsdays.org/api/events/devopsdays-baltimore-2025/speakers/?page=1&page_size=50';
2121

2222
fetch(url)
23-
.then((response) => {
24-
return response.json();
25-
})
23+
.then((response) => response.json())
2624
.then((data) => {
2725
let speakers = data.results;
28-
2926
console.log(speakers);
3027

31-
speakers.map(function(speaker) {
28+
speakers.forEach(function(speaker) {
3229
let li = document.createElement('div');
33-
li.className = `col-lg-3 col-md-6 p-3`;
30+
li.className = 'col-lg-3 col-md-6 p-3';
31+
3432
let name = document.createElement('h3');
33+
name.textContent = speaker.name;
34+
3535
let pic = document.createElement('img');
36+
pic.className = 'speakers-page';
37+
pic.src =
38+
(typeof speaker.avatar_url === 'string' && speaker.avatar_url.trim().length > 0)
39+
? speaker.avatar_url
40+
: '/img/speaker-default.jpg';
41+
3642
let bio = document.createElement('details');
37-
bio.className = `p-1`;
38-
let talk = document.createElement('a');
39-
40-
name.innerHTML = `${speaker.name}`;
41-
pic.src = speaker.avatar.length != 0 ? `${speaker.avatar}`: '/img/speaker-default.jpg';
42-
pic.className = `speakers-page`;
43-
bio.innerHTML = `<summary><b>About ${speaker.name}</b></summary><p>${speaker.biography ? `${speaker.biography}`: `Ipsum`}</p>`;
44-
talk.setAttribute('href', speaker.submissions[0] ? `https://talks.devopsdays.org/devopsdays-baltimore-2025/talk/${speaker.submissions[0]}` : ``);
45-
talk.setAttribute('target', '_blank');
46-
talk.className = `btn btn-primary`;
47-
talk.innerHTML = `Link to talk`;
43+
bio.className = 'p-1';
44+
bio.innerHTML =
45+
`<summary><b>About ${speaker.name}</b></summary><p>${
46+
speaker.biography
47+
? speaker.biography
48+
: `No biography found for ${speaker.name}. If you are ${speaker.name}, please email the organizers with a biography to be used here.`
49+
}</p>`;
4850

4951
li.appendChild(name);
5052
li.appendChild(pic);
5153
li.appendChild(bio);
52-
li.appendChild(talk);
54+
55+
if (
56+
Array.isArray(speaker.submissions) &&
57+
speaker.submissions.length > 0 &&
58+
speaker.submissions[0]
59+
) {
60+
let talk = document.createElement('a');
61+
talk.href = `https://talks.devopsdays.org/devopsdays-baltimore-2025/talk/${speaker.submissions[0]}`;
62+
talk.target = '_blank';
63+
talk.className = 'btn btn-primary';
64+
talk.textContent = 'Link to talk';
65+
li.appendChild(talk);
66+
}
67+
5368
list.appendChild(li);
5469
});
5570
})
5671
.catch(function(error) {
57-
console.log(error);
72+
console.error('Error fetching speaker data:', error);
5873
})
5974
.finally(() => {
6075
ul.appendChild(list);

content/events/2025-baltimore/welcome.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ Description = "devopsdays Baltimore 2025"
1010
<div class="row">
1111
<div class="col-md-8">
1212
<h2>Welcome to DevOpsDays Baltimore!</h2>
13-
<h3>• {{< event_link url-key="registration_link" text="Register to attend the conference!" >}}</h3>
14-
<h3>• {{< event_link page="sponsor" text="Interested in Sponsoring?" >}}</h3>
13+
<h3>Thank you for making DevOpsDays Baltimore 2025 a success!</h3>
14+
<p>We hope to see you in 2026!</p>
15+
<!-- <h3>• {{< event_link url-key="registration_link" text="Register to attend the conference!" >}}</h3>
16+
<h3>• {{< event_link page="sponsor" text="Interested in Sponsoring?" >}}</h3> -->
17+
<hr/>
1518
<p>DevOpsDays Baltimore will be on {{< event_start >}} - {{< event_end >}}, at the Pava Center for Entrepreneurship at Johns Hopkins University in Baltimore.</p>
1619
<p>From fledgling startups to established industry, the DMV is home to a large, vibrant technology community. Baltimore, in particular, has been a flurry of activity in the past several years, drawing attention from around the globe.</p>
1720

@@ -36,14 +39,14 @@ Description = "devopsdays Baltimore 2025"
3639
{{< event_location >}}
3740
</div>
3841
</div>
39-
<div class = "row">
42+
<!-- <div class = "row">
4043
<div class = "col-md-2">
4144
<strong>Register</strong>
4245
</div>
4346
<div class = "col-md-8">
44-
<strong>{{< event_link url-key="registration_link" text="Register to attend the conference!" >}}</strong> <i>[Early bird discounts until 3/15, while supplies last]</i>
47+
<strong>{{< event_link url-key="registration_link" text="Register to attend the conference!" >}}</strong>
4548
</div>
46-
</div>
49+
</div> -->
4750
<!-- <div class = "row">
4851
<div class = "col-md-2">
4952
<strong>Propose</strong>
@@ -52,7 +55,7 @@ Description = "devopsdays Baltimore 2025"
5255
{{< event_link url-key="cfp_link" text="Propose a talk, now!" >}}
5356
</div>
5457
</div> -->
55-
<!-- <div class = "row">
58+
<div class = "row">
5659
<div class = "col-md-2">
5760
<strong>Schedule</strong>
5861
</div>
@@ -67,7 +70,7 @@ Description = "devopsdays Baltimore 2025"
6770
<div class = "col-md-8">
6871
Check out the {{< event_link page="speakers" text="speakers!" >}}
6972
</div>
70-
</div>-->
73+
</div>
7174
<div class="row">
7275
<div class="col-md-2">
7376
<strong>Sponsors</strong>

data/events/2025/baltimore/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ cfp_date_announce: 2025-02-28 # inform proposers of status
2323
cfp_link: "https://talks.devopsdays.org/devopsdays-baltimore-2025/cfp" #if you have a custom link for submitting proposals, add it here. This will control the Propose menu item as well as the "Propose" button.
2424

2525
registration_date_start: #2024-02-28 # start accepting registration. Leave blank if registration is not open yet. This will make the "Register" button appear on your "Welcome" page.
26-
registration_date_end: #2024-05-22 # close registration. Leave blank if registration is not open yet. If you set "registration_date_start" you need a value here.
26+
registration_date_end: 2025-05-21 # close registration. Leave blank if registration is not open yet. If you set "registration_date_start" you need a value here.
2727

28-
registration_closed: "false" #set this to true if you need to manually close registration before your registration end date
28+
registration_closed: "true" #set this to true if you need to manually close registration before your registration end date
2929
registration_link: "https://tickets.devopsdays.org/devopsdays-baltimore/2025/"
3030
sharing_image: "logo.png"
3131

0 commit comments

Comments
 (0)