This commit is contained in:
2026-06-22 05:51:46 +03:00
commit 03f9319b3a
32 changed files with 11008 additions and 0 deletions

49
keystatic.config.ts Normal file
View File

@@ -0,0 +1,49 @@
import { config, collection, fields, singleton } from "@keystatic/core";
export default config({
storage: {
kind: "local",
},
collections: {
paintings: collection({
label: "Paintings",
slugField: "title",
path: "src/content/paintings/*",
schema: {
title: fields.slug({ name: { label: "Title" } }),
image: fields.image({
label: "Image",
description: "Photograph of the painting",
}),
year: fields.integer({ label: "Year" }),
medium: fields.text({ label: "Medium" }),
dimensions: fields.text({ label: "Dimensions" }),
description: fields.text({
label: "Description",
multiline: true,
}),
featured: fields.checkbox({
label: "Featured",
defaultValue: false,
}),
},
}),
},
singletons: {
about: singleton({
label: "About",
path: "src/content/about/index",
format: "yaml",
schema: {
photo: fields.image({
label: "Photo",
description: "Artist portrait",
}),
bio: fields.text({
label: "Bio",
multiline: true,
}),
},
}),
},
});