We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f588aba commit 77cb8f2Copy full SHA for 77cb8f2
2025/src/content/config.ts
@@ -1,5 +1,4 @@
1
-import { glob } from "astro/loaders";
2
-// src/content/config.ts
+import { file, glob } from "astro/loaders";
3
import { defineCollection, z } from "astro:content";
4
5
const sponsors = defineCollection({
@@ -15,7 +14,20 @@ const sponsors = defineCollection({
15
14
}),
16
});
17
18
-// コレクションのエクスポート
+const timetable = defineCollection({
+ loader: file("./src/content/timetable.toml"),
19
+ schema: z.array(
20
+ z.object({
21
+ title: z.string(),
22
+ start_at: z.coerce.date(),
23
+ end_at: z.coerce.date(),
24
+ speaker_name: z.string().optional(),
25
+ session_id: z.string().optional(),
26
+ }),
27
+ ),
28
+});
29
+
30
export const collections = {
31
sponsors,
32
+ timetable,
33
};
0 commit comments