From f0cb8fbc34481054cdfb3fefc42d63281732b195 Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 5 Nov 2022 15:22:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=20baseUrl=E4=B8=BA?= =?UTF-8?q?=E7=A9=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getPageProperties.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getPageProperties.js b/lib/notion/getPageProperties.js index 6243fb28..47cb9dae 100644 --- a/lib/notion/getPageProperties.js +++ b/lib/notion/getPageProperties.js @@ -71,7 +71,7 @@ async function getPageProperties(id, block, schema, authToken, tagOptions, siteI properties.status = properties.status?.[0] if (properties.type === 'Post') { - properties.slug = BLOG.POST_URL_PREFIX + '/' + (properties.slug ?? properties.id) + properties.slug = BLOG.POST_URL_PREFIX ? (BLOG.POST_URL_PREFIX + '/' + (properties.slug ?? properties.id)) : (properties.slug ?? properties.id) } else { properties.slug = (properties.slug ?? properties.id) } From a94931cac8c7dd5709b8c72a67cd904c01b8915a Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 5 Nov 2022 15:26:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?font-awesome=20=E6=9B=B4=E6=96=B06.2?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog.config.js b/blog.config.js index 23d02168..976f6aa4 100644 --- a/blog.config.js +++ b/blog.config.js @@ -31,8 +31,8 @@ const BLOG = { CUSTOM_FONT_SANS: ['LXGW WenKai Screen'], // 自定义无衬线字体 CUSTOM_FONT_SERIF: ['LXGW WenKai Screen'], // 自定义衬线字体 - // 图标字体 - FONT_AWESOME_PATH: 'https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.4/css/all.min.css', // 图标库CDN ,国内推荐BootCDN,国外推荐 CloudFlare https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css + // 图标库CDN(可以直接改版本号) + FONT_AWESOME_PATH: 'https://cdn.bootcdn.net/ajax/libs/font-awesome/6.2.0/css/all.min.css', BACKGROUND_LIGHT: '#eeeeee', // use hex value, don't forget '#' e.g #fffefc BACKGROUND_DARK: '#000000', // use hex value, don't forget '#'