修复站点信息错误

This commit is contained in:
tangly1024
2022-04-29 16:02:53 +08:00
parent 4e87e14308
commit 2496908003

View File

@@ -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)