Skip to content

Commit

Permalink
removed empty collection
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlyons committed Dec 7, 2024
1 parent cf86b21 commit 5bba37e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
import { defineCollection, z } from 'astro:content';
import { glob } from 'astro/loaders';

const blog = defineCollection({
loader: glob({ base: './src/content/work', pattern: '**/*.{md,mdx}' }),
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
description: z.string(),
// Transform string to Date object
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.string().optional(),
}),
});

const work = defineCollection({
loader: glob({ base: './src/content/work', pattern: '**/*.{md,mdx}' }),
schema: z.object({
Expand All @@ -26,4 +13,4 @@ const work = defineCollection({
}),
});

export const collections = { blog, work };
export const collections = { work };

0 comments on commit 5bba37e

Please sign in to comment.