Skip to content

Commit ff00c1b

Browse files
committed
feat: allow page_layout option for component pages
1 parent 5dafe11 commit ff00c1b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/componenten/README.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Componenten Overzicht
3+
page_layout: overview
34
hide_title: true
45
hide_table_of_contents: true
56
sidebar_label: Overzicht

packages/website/src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const components = defineCollection({
125125
pattern: ['componenten/**/!(_)*.{md,mdx}'],
126126
generateId,
127127
}),
128-
schema,
128+
schema: schema.extend({ page_layout: z.enum(['overview', 'detail']).optional() }),
129129
});
130130

131131
const wcag = defineCollection({

0 commit comments

Comments
 (0)