-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.config.ts
More file actions
60 lines (59 loc) · 1.78 KB
/
Copy pathcontent.config.ts
File metadata and controls
60 lines (59 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { defineContentConfig, defineCollection, property, z } from '@nuxt/content'
import { schemaPreset } from './app/utils/schemas'
import { googleSheetsImportSchemas } from './app/utils/googleSheetsImportSchemas'
export default defineContentConfig({
collections: {
home: defineCollection({
type: 'page',
source: 'index.md'
}),
projectLanding: defineCollection({
type: 'page',
source: 'projects/index.md'
}),
projects: defineCollection({
type: 'page',
source: { include: 'projects/*.md', exclude: ['projects/index.md'] },
schema: z.object({
draft: z.boolean().default(false),
authors: z.array(z.object({
slug: z.string(),
username: z.string(),
name: z.string(),
to: z.string(),
avatar: z.object({
src: z.string(),
alt: z.string()
})
})),
category: z.enum(['development', 'product']).optional(),
date: z.date(),
image: z.object({
src: z.string(),
alt: z.string()
}),
badge: z.union([property(z.object({})).inherit('@nuxt/ui/components/Badge.vue'), z.string()]).optional()
})
}),
thrPresets: defineCollection({
type: 'data',
source: 'data/presets/*.json',
schema: schemaPreset
}),
bibleBooks: defineCollection({
type: 'data',
source: 'data/bible-books/*.json',
schema: googleSheetsImportSchemas.bibleBooks
}),
bibleIndexLayers: defineCollection({
type: 'data',
source: 'data/bible-index-layers/*.json',
schema: googleSheetsImportSchemas.bibleIndexLayers
}),
lyrics: defineCollection({
type: 'page',
source: 'lyrics/*.md',
schema: googleSheetsImportSchemas.lyrics
})
}
})