add carbon rating

This commit is contained in:
2024-06-21 15:57:11 -04:00
parent 74c54b996e
commit 98c1a85f21
5 changed files with 12 additions and 31 deletions
+1 -2
View File
@@ -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()),
}),
});