Update post collection and show category on posts

This commit is contained in:
prototypa
2023-01-24 01:26:37 -05:00
parent c9c555e0ef
commit 64bcda934c
12 changed files with 42 additions and 16 deletions

View File

@ -1,6 +1,6 @@
import { z, defineCollection } from 'astro:content';
const posts = defineCollection({
const post = defineCollection({
schema: z.object({
title: z.string(),
description: z.string().optional(),
@ -19,5 +19,5 @@ const posts = defineCollection({
});
export const collections = {
posts: posts,
post: post,
};