format all code (#386)
This commit is contained in:
committed by
GitHub
parent
7ea2f7f40f
commit
286b050fa8
+20
-20
@@ -1,24 +1,24 @@
|
||||
import { defineCollection, z } from 'astro:content'
|
||||
import { defineCollection, z } from "astro:content";
|
||||
|
||||
const postsCollection = defineCollection({
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
published: z.date(),
|
||||
updated: z.date().optional(),
|
||||
draft: z.boolean().optional().default(false),
|
||||
description: z.string().optional().default(''),
|
||||
image: z.string().optional().default(''),
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
category: z.string().optional().default(''),
|
||||
lang: z.string().optional().default(''),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
published: z.date(),
|
||||
updated: z.date().optional(),
|
||||
draft: z.boolean().optional().default(false),
|
||||
description: z.string().optional().default(""),
|
||||
image: z.string().optional().default(""),
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
category: z.string().optional().default(""),
|
||||
lang: z.string().optional().default(""),
|
||||
|
||||
/* For internal use */
|
||||
prevTitle: z.string().default(''),
|
||||
prevSlug: z.string().default(''),
|
||||
nextTitle: z.string().default(''),
|
||||
nextSlug: z.string().default(''),
|
||||
}),
|
||||
})
|
||||
/* For internal use */
|
||||
prevTitle: z.string().default(""),
|
||||
prevSlug: z.string().default(""),
|
||||
nextTitle: z.string().default(""),
|
||||
nextSlug: z.string().default(""),
|
||||
}),
|
||||
});
|
||||
export const collections = {
|
||||
posts: postsCollection,
|
||||
}
|
||||
posts: postsCollection,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user