From c1db033f978c80cf5aef35a292bd817957c28686 Mon Sep 17 00:00:00 2001 From: Mark Larah Date: Thu, 7 May 2026 15:40:53 -0500 Subject: [PATCH] Fix authors rendering as [object Object] on website The authorName helper assumed string authors but metadata now uses objects. Co-Authored-By: Claude Opus 4.7 --- scripts/build-website.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build-website.js b/scripts/build-website.js index d58aec2..d7347ea 100755 --- a/scripts/build-website.js +++ b/scripts/build-website.js @@ -92,6 +92,9 @@ function titleCase(value) { } function authorName(author) { + if (typeof author === "object" && author !== null) { + return author.name; + } const match = String(author).match(/^\s*(.*?)\s*<[^>]+>\s*$/); return match ? match[1] : String(author); }