From 2496908003cc984c8579623bd1e902d235bec833 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 29 Apr 2022 16:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=99=E7=82=B9=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getNotionData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 118ed16b..0b2d5ba1 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -167,7 +167,7 @@ function getAllCategories({ allPosts, categoryOptions, sliceCount = 0 }) { * @param from * @returns {Promise<{title,description,pageCover}>} */ -function getBlogInfo(collection, block) { +function getBlogInfo({ collection, block }) { const title = collection?.name?.[0][0] || BLOG.TITLE const description = collection?.description?.[0][0] || BLOG.DESCRIPTION const pageCover = mapCoverUrl(collection?.cover, block)