Open History to see the last commit
1import { defineCollection, defineConfig } from "@content-collections/core";
2
3const jobs = defineCollection({
4 name: "jobs",
5 directory: "content/jobs",
6 include: "**/*.md",
7 schema: (z) => ({
8 jobTitle: z.string(),
9 summary: z.string(),
10 startDate: z.string(),
11 endDate: z.string().optional(),
12 company: z.string(),
13 location: z.string(),
14 tags: z.array(z.string()),
15 }),
16});
17
18const education = defineCollection({
19 name: "education",
20 directory: "content/education",
21 include: "**/*.md",
22 schema: (z) => ({
23 school: z.string(),
24 summary: z.string(),
25 startDate: z.string(),
26 endDate: z.string().optional(),
27 tags: z.array(z.string()),
28 }),
29});
30
31export default defineConfig({
32 collections: [jobs, education],
33});