Skip to content

Commit 0afd2ac

Browse files
chore: examples with the right argument order (#3493)
1 parent a5aaabc commit 0afd2ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/content/docs/2.collections/1.define.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ import { defineCollection, defineContentConfig } from '@nuxt/content'
3737
export default defineContentConfig({
3838
collections: {
3939
docs: defineCollection({
40-
// Load every file inside the `content` directory
41-
source: '**',
4240
// Specify the type of content in this collection
4341
type: 'page'
42+
// Load every file inside the `content` directory
43+
source: '**',
4444
})
4545
}
4646
})
@@ -64,8 +64,8 @@ import { defineCollection, defineContentConfig, z } from '@nuxt/content'
6464
export default defineContentConfig({
6565
collections: {
6666
blog: defineCollection({
67-
source: 'blog/*.md',
6867
type: 'page',
68+
source: 'blog/*.md',
6969
// Define custom schema for docs collection
7070
schema: z.object({
7171
tags: z.array(z.string()),

0 commit comments

Comments
 (0)