mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00
chore: update code comment
This commit is contained in:
parent
1492ae07d2
commit
93c2fbb5b3
5 changed files with 36 additions and 23 deletions
|
@ -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(''),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue