add carbon rating
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { z, defineCollection } from 'astro:content';
|
||||
import { Tag } from 'src/types';
|
||||
|
||||
const blogCollection = defineCollection({
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
pubDate: z.string().transform((str: string) => new Date(str)),
|
||||
tags: z.array(z.nativeEnum(Tag)),
|
||||
tags: z.array(z.string()),
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user