fix: check issues
Some checks failed
Build, check & Test / run (push) Failing after 1m6s

Signed-off-by: Florian Bouillon <f.bouillon@aptatio.com>
This commit is contained in:
2023-10-09 12:05:31 +02:00
parent 5da7cf2faa
commit f6adff52f2
5 changed files with 8 additions and 8 deletions

29
src/content/_config.ts Normal file
View File

@ -0,0 +1,29 @@
// 1. Import utilities from `astro:content`
import { defineCollection, z } from 'astro:content'
// 2. Define your collection(s)
const projectsCollection = defineCollection({
type: 'content',
schema: ({ image }) => z.object({
title: z.string(),
description: z.string().optional(),
image: image().optional(),
link: z.object({
href: z.string(),
rel: z.string().optional(),
text: z.string().optional(),
target: z.string().optional()
}).optional(),
disabled: z.string().optional(),
created: z.date().optional(),
updated: z.date().optional(),
techs: z.string().array().optional()
})
})
// 3. Export a single `collections` object to register your collection(s)
// This key should match your collection directory name in "src/content"
export const collections = {
projects: projectsCollection
}