From 5ec7862a33ba357820d3b62ff158a7eba747d417 Mon Sep 17 00:00:00 2001 From: emengweb Date: Mon, 24 Apr 2023 10:53:44 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9notion.so=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=8F=8D=E4=BB=A3=E5=9F=9F=E5=90=8D=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getPageProperties.js | 2 +- lib/notion/mapImage.js | 4 ++-- public/css/theme-hexo.css | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) 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