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