diff --git a/lib/notion/getPageProperties.js b/lib/notion/getPageProperties.js index 0ba6a3bd..185bc008 100644 --- a/lib/notion/getPageProperties.js +++ b/lib/notion/getPageProperties.js @@ -115,7 +115,7 @@ function getImageUrl(imgObj, blockVal) { return null } if (imgObj.startsWith('/')) { - return 'https://www.notion.so' + imgObj // notion内部图片转相对路径为绝对路径 + return BLOG.NOTION_HOST + imgObj // notion内部图片转相对路径为绝对路径 } if (imgObj.startsWith('http')) { diff --git a/lib/notion/mapImage.js b/lib/notion/mapImage.js index 3d91cd4d..2169bf1d 100644 --- a/lib/notion/mapImage.js +++ b/lib/notion/mapImage.js @@ -12,7 +12,7 @@ const mapImgUrl = (img, block, type = 'block') => { return ret } // 相对目录,则视为notion的自带图片 - if (img.startsWith('/')) ret = 'https://www.notion.so' + img + if (img.startsWith('/')) ret = BLOG.NOTION_HOST + img // 书签的地址本身就是永久链接,无需处理 if (!ret && block?.type === 'bookmark') { @@ -21,7 +21,7 @@ const mapImgUrl = (img, block, type = 'block') => { // notion永久图床地址 if (!ret && img.indexOf('secure.notion-static.com') > 0 && (BLOG.IMG_URL_TYPE === 'Notion' || type !== 'block')) { - ret = 'https://www.notion.so/image/' + encodeURIComponent(img) + '?table=' + type + '&id=' + block.id + ret = BLOG.NOTION_HOST + '/image/' + encodeURIComponent(img) + '?table=' + type + '&id=' + block.id } // 剩余的是第三方图片url或emoji diff --git a/public/css/theme-hexo.css b/public/css/theme-hexo.css index da253800..ff509ec5 100644 --- a/public/css/theme-hexo.css +++ b/public/css/theme-hexo.css @@ -22,4 +22,9 @@ width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.5) 100%); +} + +/* Custem */ +.tk-footer{ + opacity: 0; } \ No newline at end of file