Skip to content

Commit

Permalink
refactor: update content collection config
Browse files Browse the repository at this point in the history
  • Loading branch information
nblackburn committed Dec 4, 2024
1 parent af093a7 commit fd513ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/config.ts → src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { z, defineCollection } from 'astro:content';
import { defineCollection, z } from 'astro:content';

const projectCollection = defineCollection({
const project = defineCollection({
schema: ({ image }) =>
z.object({
title: z.string(),
Expand All @@ -13,5 +13,5 @@ const projectCollection = defineCollection({
});

export const collections = {
project: projectCollection
project
};

0 comments on commit fd513ae

Please sign in to comment.