mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 23:16:48 +00:00
fix
This commit is contained in:
@@ -251,12 +251,23 @@ function getCategoryOptions(schema) {
|
||||
* @returns {Promise<{title,description,pageCover,icon}>}
|
||||
*/
|
||||
function getSiteInfo({ collection, block, NOTION_CONFIG, pageId }) {
|
||||
if (!collection || !block || NOTION_CONFIG || pageId) {
|
||||
return {
|
||||
title: BLOG.TITLE,
|
||||
description: BLOG.DESCRIPTION,
|
||||
pageCover: BLOG.HOME_BANNER_IMAGE,
|
||||
icon: BLOG.AVATAR,
|
||||
link: BLOG.LINK
|
||||
}
|
||||
}
|
||||
|
||||
const title = collection?.name?.[0][0] || BLOG.TITLE
|
||||
const description = collection?.description
|
||||
? Object.assign(collection).description[0][0]
|
||||
: BLOG.DESCRIPTION
|
||||
|
||||
const pageCover = collection?.cover
|
||||
? mapImgUrl(collection?.cover, block[idToUuid(pageId)]?.value)
|
||||
? mapImgUrl(collection?.cover, block[pageId]?.value)
|
||||
: BLOG.HOME_BANNER_IMAGE
|
||||
// 用户头像压缩一下
|
||||
let icon = compressImage(
|
||||
|
||||
Reference in New Issue
Block a user