Skip to content

Commit 8234508

Browse files
turbutIgnas Poskus
andauthored
[VILNIUS-2025] add program #15256
Co-authored-by: Ignas Poskus <[email protected]>
1 parent 39a2516 commit 8234508

File tree

3 files changed

+85
-18
lines changed

3 files changed

+85
-18
lines changed

content/events/2025-vilnius/program.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@ Description = "Program for devopsdays Vilnius 2025"
55
Icons = "false"
66
+++
77

8-
<div class = "row">
9-
<div class = "col">
10-
<hr />
11-
If Open Space is new to you, you may be interested in <a href="/pages/open-space-format">more details about Open Space</a>.
12-
<hr />
13-
</div>
14-
</div>
15-
<div>
16-
<b>Color Keys:</b>
17-
<div class="col-lg-3 col-md-6 program-element program-workshop">Workshop</div>
18-
<div class="col-lg-3 col-md-6 program-element program-talk">Talk</div>
19-
<div class="col-lg-3 col-md-6 program-element program-open-space">Open Space</div>
20-
<div class="col-lg-3 col-md-6 program-element program-ignite">Ignite</div>
21-
<div class="col-lg-3 col-md-6 program-element program-custom">Break or other event</div>
22-
<br />
23-
</div>
8+
<script type="text/javascript" src="https://talks.devopsdays.org/devopsdays-vilnius-2025/widgets/schedule.js"></script>
9+
<pretalx-schedule event-url="https://talks.devopsdays.org/devopsdays-vilnius-2025/" locale="en" format="grid" style="--pretalx-clr-primary: #f69b33"></pretalx-schedule>
10+
<noscript>
11+
<div class="pretalx-widget">
12+
<div class="pretalx-widget-info-message">
13+
JavaScript is disabled in your browser. To access our schedule without JavaScript,
14+
please <a target="_blank" href="https://talks.devopsdays.org/devopsdays-vilnius-2025/schedule/">click here</a>.
15+
</div>
16+
</div>
17+
</noscript>

content/events/2025-vilnius/speakers.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,76 @@ Title = "Speakers"
33
Type = "speakers"
44
Description = "Speakers for devopsdays Vilnius 2025"
55
+++
6+
7+
<div id="speakers" class="row"></div>
8+
<noscript>
9+
<div class="pretalx-widget">
10+
<div class="pretalx-widget-info-message">
11+
JavaScript is disabled in your browser. To access our speaker list without JavaScript,
12+
please <a target="_blank" href="https://talks.devopsdays.org/devopsdays-vilnius-2025/speaker/">click here</a>.
13+
</div>
14+
</div>
15+
</noscript>
16+
17+
<script>
18+
const ul = document.getElementById('speakers');
19+
const list = document.createDocumentFragment();
20+
const url = 'https://talks.devopsdays.org/api/events/devopsdays-vilnius-2025/speakers/?page=1&page_size=50';
21+
22+
fetch(url)
23+
.then((response) => response.json())
24+
.then((data) => {
25+
let speakers = data.results;
26+
console.log(speakers);
27+
28+
speakers.forEach(function(speaker) {
29+
let li = document.createElement('div');
30+
li.className = 'col-lg-3 col-md-6 p-3';
31+
32+
let name = document.createElement('h3');
33+
name.textContent = speaker.name;
34+
35+
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+
42+
let bio = document.createElement('details');
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>`;
50+
51+
li.appendChild(name);
52+
li.appendChild(pic);
53+
li.appendChild(bio);
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-vilnius-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+
68+
list.appendChild(li);
69+
});
70+
})
71+
.catch(function(error) {
72+
console.error('Error fetching speaker data:', error);
73+
})
74+
.finally(() => {
75+
ul.appendChild(list);
76+
});
77+
</script>
78+

data/events/2025/vilnius/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ location_address: "Švitrigailos 34, 03230 Vilnius" #Optional - use the street a
2929
nav_elements: # List of pages you want to show up in the navigation of your page.
3030
- name: registration
3131
url: "https://fienta.com/devopsdays-vilnius-2025"
32-
# - name: speakers
33-
# - name: program
32+
- name: speakers
33+
- name: program
3434
- name: propose
3535
url: "https://talks.devopsdays.org/devopsdays-vilnius-2025/cfp"
3636
- name: sponsor

0 commit comments

Comments
 (0)