修复封面编译异常
This commit is contained in:
tangly1024
2021-12-16 15:00:40 +08:00
parent f48d519a53
commit f3c6af15bb
3 changed files with 5 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ export async function getAllPosts ({ notionPageData, from, includePage = false }
properties.createdTime = new Date(pageBlock[id].value?.created_time).toString()
properties.lastEditedTime = new Date(pageBlock[id].value?.last_edited_time).toString()
properties.fullWidth = pageBlock[id].value?.format?.page_full_width ?? false
properties.page_cover = getPostCover(id, pageBlock) ?? BLOG.defaultImgCover
properties.page_cover = getPostCover(id, pageBlock) ?? null
properties.content = pageBlock[id].value?.content ?? []
properties.tagItems = properties?.tags?.map(tag => {
return { name: tag, color: tagOptions.find(t => t.value === tag)?.color || 'gray' }