From b30b77e6fd922fe0b9bfa4e894b561516c3d50f8 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 11 Nov 2025 11:25:12 +0100 Subject: [PATCH] Added Taxonomy/Author collection --- src/keystatic/collections/taxonomy/authors.ts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/keystatic/collections/taxonomy/authors.ts diff --git a/src/keystatic/collections/taxonomy/authors.ts b/src/keystatic/collections/taxonomy/authors.ts new file mode 100644 index 0000000..6f2a4b9 --- /dev/null +++ b/src/keystatic/collections/taxonomy/authors.ts @@ -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, + }), + }, +});