From bc298255e25820907df2f0eb9f75867943743f0e Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Tue, 16 Apr 2024 15:02:00 +0800 Subject: [PATCH] =?UTF-8?q?menu=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/db/getSiteData.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/db/getSiteData.js b/lib/db/getSiteData.js index 55c76a92543..7994971671b 100755 --- a/lib/db/getSiteData.js +++ b/lib/db/getSiteData.js @@ -9,7 +9,6 @@ import { getPostBlocks, getSingleBlock } from '@/lib/notion/getPostBlocks' import { compressImage, mapImgUrl } from '@/lib/notion/mapImage' import { deepClone } from '@/lib/utils' import { idToUuid } from 'notion-utils' -import { siteConfig } from '../config' import { extractLangId, extractLangPrefix } from '../utils/pageId' export { getAllTags } from '../notion/getAllTags' @@ -193,10 +192,7 @@ function getCustomMenu({ collectionData, NOTION_CONFIG }) { if (menuPages && menuPages.length > 0) { menuPages.forEach(e => { e.show = true - if ( - e?.slug?.indexOf('http') === 0 && - e?.slug?.indexOf(siteConfig('LINK', BLOG.LINK, NOTION_CONFIG)) < 0 - ) { + if (e?.slug?.indexOf('http') === 0) { e.target = '_blank' e.to = e.slug } else {