Skip to content

Commit

Permalink
Switch custom descriptions to block type
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAurelius committed Dec 27, 2024
1 parent ddb517f commit 2babdea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions carbon-projects/schemas/indexContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ export default defineType({
description:
"Short description, e.g. for retirement PDFs. Ideally 300-600 chars, no newlines, no bullet points.",
group: "info",
type: "text",
validation: (r) => r.min(20).max(700),
type: "array",
of: [{type: "block"}]
}),
defineField({
name: "longDescription",
description: "Longer description",
group: "info",
type: "text",
type: "array",
of: [{type: "block"}]
}),
defineField({
name: "sdgs",
Expand Down
7 changes: 4 additions & 3 deletions carbon-projects/schemas/projectContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ export default defineType({
description:
"Short description, e.g. for retirement PDFs. Ideally 300-600 chars, no newlines, no bullet points.",
group: "info",
type: "text",
validation: (r) => r.min(20).max(700),
type: 'array',
of: [{type: 'block'}]
}),
defineField({
name: "longDescription",
description: "Longer description",
group: "info",
type: "text",
type: 'array',
of: [{type: 'block'}]
}),
defineField({
name: "extraSdgs",
Expand Down

0 comments on commit 2babdea

Please sign in to comment.