-
Notifications
You must be signed in to change notification settings - Fork 1
/
keystatic.config.ts
39 lines (37 loc) · 1.27 KB
/
keystatic.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// keystatic.config.ts
import { config, fields, collection } from '@keystatic/core';
export default config({
storage: {
kind: 'local',
},
collections: {
posts: collection({
label: 'Posts',
slugField: 'title',
path: 'src/content/posts/*',
format: { contentField: 'content' },
schema: {
title: fields.slug({ name: { label: 'Title' } }),
description: fields.text({ label: 'Description' }),
pubDate: fields.text({ label: 'Date (MMM DD, YYYY)' }),
tags: fields.array(fields.text({ label: 'Tag' }), {
label: 'Tags',
itemLabel: props => props.value,
}),
devOnly: fields.checkbox({
label: 'Draft',
defaultValue: true,
description: 'Is this WIP?',
}),
content: fields.mdx({ label: 'Content' }),
},
}),
},
});
// title: 'SynBio and Standardization'
// description:
// 'Synthetic Biology needs standards. What have we done so far, and what can
// we learn?'
// pubDate: 'Oct 28, 2024'
// tags: ['synbio', 'standards', 'review', 'meta-engineering']
// devOnly: true