aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/description.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sanity/schemas/description.ts')
-rw-r--r--sanity/schemas/description.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/sanity/schemas/description.ts b/sanity/schemas/description.ts
new file mode 100644
index 0000000..211aac3
--- /dev/null
+++ b/sanity/schemas/description.ts
@@ -0,0 +1,24 @@
+import { baseLanguage } from "./_locales";
+
+export default {
+ name: 'description',
+ type: 'document',
+ title: 'Description section',
+ preview: {
+ select: {
+ title: `title.${baseLanguage.id}`
+ }
+ },
+ fields: [
+ {
+ title: "Title",
+ name: 'title',
+ type: 'string',
+ },
+ {
+ title: "Text",
+ name: "text",
+ type: "string",
+ }
+ ]
+} \ No newline at end of file