Skip to content

Commit f3e4983

Browse files
Add fields for updated date, hero image URL, draft status, and tags in keystatic configuration
1 parent 38c9743 commit f3e4983

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

keystatic.config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ export default config({
2525
title: fields.slug({ name: { label: 'Title' } }),
2626
description: fields.text({ label: 'Description', multiline: true }),
2727
pubDate: fields.date({ label: 'Publication Date' }),
28-
repComm: fields.text({ label: 'REP COMM %', defaultValue: '0%' }),
28+
updatedDate: fields.date({ label: 'Updated Date' }),
29+
heroImage: fields.text({ label: 'Hero Image URL / Path' }),
30+
draft: fields.checkbox({ label: 'Draft', defaultValue: false }),
31+
tags: fields.array(fields.text({ label: 'Tag' }), {
32+
label: 'Tags',
33+
itemLabel: (props) => props.value,
34+
}),
2935

3036
content: fields.document({
3137
label: 'Content',
@@ -82,4 +88,4 @@ export default config({
8288
},
8389
}),
8490
},
85-
});
91+
});

0 commit comments

Comments
 (0)