chore: update code comment

This commit is contained in:
radishzzz 2025-03-17 00:28:22 +00:00
parent 1492ae07d2
commit 93c2fbb5b3
5 changed files with 36 additions and 23 deletions

View file

@ -1,6 +1,7 @@
import { allLocales } from '@/config'
import { defineCollection, z } from 'astro:content'
// Posts collection
const postsCollection = defineCollection({
schema: z.object({
// required
@ -22,6 +23,7 @@ const postsCollection = defineCollection({
}),
})
// About page
const aboutCollection = defineCollection({
schema: z.object({
lang: z.enum(['', ...allLocales]).optional().default(''),