chore: update comments for consistency, improve code readability and structure

This commit is contained in:
radishzzz 2025-03-22 22:54:23 +00:00
parent ca45fed0aa
commit fedf4cee1e
38 changed files with 46 additions and 60 deletions

View file

@ -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(''),