mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-29 07:26:22 +01:00
20 lines
462 B
TypeScript
20 lines
462 B
TypeScript
|
import { defineCollection } from 'astro:content'
|
||
|
import { schemaArticles, schemaLinks, schemaPhotos } from './_schemas'
|
||
|
|
||
|
const articles = defineCollection({
|
||
|
type: 'content',
|
||
|
schema: ({ image }) => schemaArticles(image)
|
||
|
})
|
||
|
|
||
|
const links = defineCollection({
|
||
|
type: 'content',
|
||
|
schema: schemaLinks
|
||
|
})
|
||
|
|
||
|
const photos = defineCollection({
|
||
|
type: 'content',
|
||
|
schema: ({ image }) => schemaPhotos(image)
|
||
|
})
|
||
|
|
||
|
export const collections = { articles, links, photos }
|