diff --git a/README.md b/README.md index 92b2c1b6..76fef972 100644 --- a/README.md +++ b/README.md @@ -95,10 +95,17 @@ yarn run start # 本地启动NextJS服务 ## 贡献者 - - - -
tangly1024
tangly1024

🎫 🔧 🎨 🐛
uWayLu
uWayLu

🔧 🐛
+ + + + + + + +
tangly1024
tangly1024

🎫 🔧 🎨 🐛
uWayLu
uWayLu

🔧 🐛 +
txs
txs

🔧 🐛 +
txs
yuzhanglong

🔧 🐛 +
十分期待你的[贡献](/CONTRIBUTING.md),一起来完善这个项目~ diff --git a/components/Giscus.js b/components/Giscus.js index db9cfb36..7a3a5e97 100644 --- a/components/Giscus.js +++ b/components/Giscus.js @@ -3,6 +3,7 @@ import { Giscus } from '@giscus/react' /** * Giscus评论 @see https://giscus.app/zh-CN + * Contribute by @txs https://github.com/txs/NotionNext/commit/1bf7179d0af21fb433e4c7773504f244998678cb * @returns {JSX.Element} * @constructor */ diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index ea10fa0b..1c0c845b 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -157,8 +157,8 @@ async function getBlogInfo ({ notionPageData, from }) { return null } const collection = notionPageData?.collection - const title = collection?.name[0][0] || BLOG.TITLE - const description = collection?.description[0][0] || BLOG.DESCRIPTION + const title = collection?.name?.[0][0] || BLOG.TITLE + const description = collection?.description?.[0][0] || BLOG.DESCRIPTION const pageCover = mapCoverUrl(collection?.cover, notionPageData.block) return { title, description, pageCover } }