From 0c2994b7b2b088045d3148e77053b21540f02eeb Mon Sep 17 00:00:00 2001 From: Max Edell Date: Tue, 17 Oct 2023 09:14:08 -0700 Subject: [PATCH] chore: add mainbook warning --- scripts/scripts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/scripts.js b/scripts/scripts.js index 23621a4..f3e66a8 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -221,6 +221,10 @@ const store = new (class { return book; }); + if (!this.mainBook) { + console.warn('page configured as book, but missing main book; possible metadata sheet issue'); + } + // exclude main book from additionalBooks this.additionalBooks = this.allBooks.filter((b) => !b.mainBook); }