add: category, date sorting
Add category layouts and date sorting
This commit is contained in:
parent
91b59e4ebe
commit
9b66a79a8c
17 changed files with 2495 additions and 17729 deletions
|
@ -6,6 +6,7 @@ export default defineContentConfig({
|
|||
type: 'page',
|
||||
source: 'blog/*.md',
|
||||
schema: z.object({
|
||||
date: z.string(),
|
||||
excerpt: z.object({
|
||||
type: z.string(),
|
||||
children: z.any(),
|
||||
|
@ -23,7 +24,7 @@ export default defineContentConfig({
|
|||
source: 'snippets/faq/*.md',
|
||||
schema: z.object({
|
||||
rawbody: z.string(),
|
||||
})
|
||||
})
|
||||
}
|
||||
}),
|
||||
}),
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue