Added Taxonomy/Author collection

This commit is contained in:
2025-11-11 11:25:12 +01:00
parent a4b8163056
commit b30b77e6fd

View File

@@ -0,0 +1,26 @@
import { collection, fields } from '@keystatic/core';
export default collection({
label: 'Authors',
slugField: 'name',
path: 'content/taxonomy/authors/*',
format: {
data: 'json',
},
schema: {
name: fields.slug({
name: {
label: 'Name',
},
}),
avatar: fields.image({
label: 'Avatar',
directory: 'public/images/authors',
publicPath: '/images/authors',
}),
description: fields.text({
label: 'Description',
multiline: true,
}),
},
});