-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.config.ts
More file actions
43 lines (38 loc) · 1.06 KB
/
Copy pathcontent.config.ts
File metadata and controls
43 lines (38 loc) · 1.06 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
import { defineContentConfig, defineCollection } from '@nuxt/content'
// Using relative paths as nuxt aliases and auto-import paths are not available in this file's context
import { navigationBarSchema } from './shared/types'
export default defineContentConfig({
collections: {
// Navigation data
navigation_fr: defineCollection({
type: 'data',
source: {
include: 'data/navigation/navigation.fr.yml',
},
schema: navigationBarSchema, // FIXME: fix TS error on Zod type
}),
navigation_en: defineCollection({
type: 'data',
source: {
include: 'data/navigation/navigation.en.yml',
},
schema: navigationBarSchema, // FIXME: fix TS error on Zod type
}),
// Pages fed with md content
pages: defineCollection({
type: 'page',
source: {
include: 'pages/**/*.md',
prefix: '',
},
}),
// Blog pages fed with md content
blog: defineCollection({
type: 'page',
source: {
include: 'blog/**/*.md',
prefix: '',
},
}),
},
})