Skip to content

Commit 5bba37e

Browse files
committed
removed empty collection
1 parent cf86b21 commit 5bba37e

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/content.config.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
import { defineCollection, z } from 'astro:content';
22
import { glob } from 'astro/loaders';
33

4-
const blog = defineCollection({
5-
loader: glob({ base: './src/content/work', pattern: '**/*.{md,mdx}' }),
6-
// Type-check frontmatter using a schema
7-
schema: z.object({
8-
title: z.string(),
9-
description: z.string(),
10-
// Transform string to Date object
11-
pubDate: z.coerce.date(),
12-
updatedDate: z.coerce.date().optional(),
13-
heroImage: z.string().optional(),
14-
}),
15-
});
16-
174
const work = defineCollection({
185
loader: glob({ base: './src/content/work', pattern: '**/*.{md,mdx}' }),
196
schema: z.object({
@@ -26,4 +13,4 @@ const work = defineCollection({
2613
}),
2714
});
2815

29-
export const collections = { blog, work };
16+
export const collections = { work };

0 commit comments

Comments
 (0)