mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
notionPost use BLOG.NOTION_HOST
This commit is contained in:
@@ -36,7 +36,7 @@ export async function getNotion(pageId) {
|
||||
function getPageCover(postInfo) {
|
||||
const pageCover = postInfo.format?.page_cover
|
||||
if (pageCover) {
|
||||
if (pageCover.startsWith('/')) return 'https://www.notion.so' + pageCover
|
||||
if (pageCover.startsWith('/')) return BLOG.NOTION_HOST + pageCover
|
||||
if (pageCover.startsWith('http')) return defaultMapImageUrl(pageCover, postInfo)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user