Skip to content

Commit c5a9318

Browse files
authored
Clarify error message about category frontmatter (#58394)
1 parent 568bbc5 commit c5a9318

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/frame/lib/frontmatter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ export const schema: Schema = {
353353
// START category-landing tags
354354
category: {
355355
type: 'array',
356+
errorMessage: `must be an array, which is written in frontmatter like:
357+
category:
358+
- Category Name`,
356359
},
357360
complexity: {
358361
type: 'array',

0 commit comments

Comments
 (0)