mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00
chore: update comments for consistency, improve code readability and structure
This commit is contained in:
parent
ca45fed0aa
commit
fedf4cee1e
38 changed files with 46 additions and 60 deletions
|
@ -1,7 +1,7 @@
|
|||
import { allLocales } from '@/config'
|
||||
import { defineCollection, z } from 'astro:content'
|
||||
|
||||
// Posts collection
|
||||
// Posts Collection
|
||||
const postsCollection = defineCollection({
|
||||
schema: z.object({
|
||||
// required
|
||||
|
@ -23,7 +23,7 @@ const postsCollection = defineCollection({
|
|||
}),
|
||||
})
|
||||
|
||||
// About page
|
||||
// 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