From 6360480ca747987f6af9fa610512cd2f441f4729 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Wed, 6 Jan 2021 00:22:00 -0500 Subject: [PATCH] Add images to articles, inspiration to mission --- schemas/article.js | 20 +++++++++++++++++++- schemas/mission.js | 5 +++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/schemas/article.js b/schemas/article.js index c5649d2..35a2702 100644 --- a/schemas/article.js +++ b/schemas/article.js @@ -27,7 +27,25 @@ export default { name: "content", title: "Content", type: "array", - of: [{type: "block"}] + of: [ + { + type: "block" + }, + { + type: 'image', + fields: [ + { + type: 'text', + name: 'alt', + title: 'Alternative text', + description: 'Description', + options: { + isHighlighted: true + } + } + ] + } + ] }, { name: "summary", diff --git a/schemas/mission.js b/schemas/mission.js index 33be1d3..550d148 100644 --- a/schemas/mission.js +++ b/schemas/mission.js @@ -14,6 +14,11 @@ export default { title: "Vision", type: "text" }, + { + name: "inspiration", + title: "Inspiration", + type: "text" + }, { name: "quote_text", title: "Quote text",