From d654e4658711ebdfcdec5fa67074e9f0e5758afe Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Wed, 25 Nov 2020 19:18:07 -0500 Subject: [PATCH] Update footer columns, add article summary/author, members can be on Class Council now --- schemas/article.js | 10 ++++++++++ schemas/footer.js | 11 +++-------- schemas/member.js | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/schemas/article.js b/schemas/article.js index 3e977fb..c5649d2 100644 --- a/schemas/article.js +++ b/schemas/article.js @@ -18,11 +18,21 @@ export default { title: "Publish date", type: "date" }, + { + name: "author", + title: "Author", + type: "string" + }, { name: "content", title: "Content", type: "array", of: [{type: "block"}] + }, + { + name: "summary", + title: "Short summary", + type: "text" } ] }; \ No newline at end of file diff --git a/schemas/footer.js b/schemas/footer.js index fc10d12..3ee777e 100644 --- a/schemas/footer.js +++ b/schemas/footer.js @@ -14,15 +14,10 @@ export default { type: "document", fields: [ { - name: "title", - title: "Title", - type: "string" - }, - { - name: "links", - title: "Links", + name: "content", + title: "Content", type: "array", - of: [{type: "string"}] + of: [{type: "block"}] } ] }] diff --git a/schemas/member.js b/schemas/member.js index db79446..1737e9c 100644 --- a/schemas/member.js +++ b/schemas/member.js @@ -15,9 +15,9 @@ export default { }, { name: "committee", - title: "Committee (excomm or steering)", + title: "Committee ('excomm' or 'officer' or 'class')", type: "string", - validation: Rule => Rule.regex(/^(excomm|steering)$/) + validation: Rule => Rule.regex(/^(excomm|officer|class)$/) }, { name: "role",