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 30, 2024
1 parent ddb517f commit 37c45f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions carbon-projects/schemas/indexContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ 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: "text"
}),
defineField({
name: "longDescription",
description: "Longer description",
group: "info",
type: "text",
type: "array",
of: [{type: "block"}]
}),
defineField({
name: "sdgs",
Expand Down
6 changes: 3 additions & 3 deletions carbon-projects/schemas/projectContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ 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: "type"
}),
defineField({
name: "longDescription",
description: "Longer description",
group: "info",
type: "text",
type: "array",
of: [{type: "block"}]
}),
defineField({
name: "extraSdgs",
Expand Down

0 comments on commit 37c45f5

Please sign in to comment.