mirror of
https://github.com/TheTaz25/denis.ergin.git
synced 2025-07-07 21:08:50 +00:00
24 lines
No EOL
497 B
TypeScript
24 lines
No EOL
497 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
|
|
const skillCollection = defineCollection({
|
|
type: 'data',
|
|
schema: z.object({
|
|
skills: z.array(z.string())
|
|
}),
|
|
});
|
|
|
|
const dhbwCollection = defineCollection({
|
|
type: 'content',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
tags: z.array(z.string()),
|
|
staticPath: z.string(),
|
|
show: z.optional(z.boolean()),
|
|
order: z.number(),
|
|
}),
|
|
});
|
|
|
|
export const collections = {
|
|
'skills': skillCollection,
|
|
'dhbw': dhbwCollection,
|
|
} |