Skip to content

Commit c70c96a

Browse files
committed
Enable 2026 programapi loading
1 parent 8188e3e commit c70c96a

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

src/content/config.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineCollection, reference, z } from "astro:content";
2-
// import { loadData } from "@utils/dataLoader";
2+
import { loadData } from "@utils/dataLoader";
33
import { glob } from "astro/loaders";
44

55
const mode = import.meta.env.MODE;
@@ -51,11 +51,8 @@ const keynoters = defineCollection({
5151
});
5252

5353
async function getCollectionsData() {
54-
// TODO: Re-enable when the API is available
55-
// const speakersData = await loadData(import.meta.env.EP_SPEAKERS_API);
56-
// const sessionsData = await loadData(import.meta.env.EP_SESSIONS_API);
57-
const speakersData = {};
58-
const sessionsData = {};
54+
const speakersData = await loadData(import.meta.env.EP_SPEAKERS_API);
55+
const sessionsData = await loadData(import.meta.env.EP_SESSIONS_API);
5956

6057
const speakersById = Object.entries(
6158
speakersData as Record<string, {}>

src/data/enabledPages.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"/about",
2424
"/faq",
2525
"/sponsorship/sponsor",
26-
"/sponsorship/information"
26+
"/sponsorship/information",
27+
"/sessions",
28+
"/speakers"
2729
],
2830
"navItems": ["Programme", "Venue", "About"]
2931
}

src/data/links.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
{
44
"name": "Programme",
55
"items": [
6+
{
7+
"name": "List of Sessions",
8+
"path": "/sessions"
9+
},
10+
{
11+
"name": "List of Speakers",
12+
"path": "/speakers"
13+
},
614
{
715
"name": "Tracks",
816
"path": "/tracks"

0 commit comments

Comments
 (0)