mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
修复站点信息错误
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user