From 3220bf4bf2891c962699f5cb9439685abb2da908 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 28 Jun 2024 17:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnav=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=A4=96=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/db/getSiteData.js | 3 +-- themes/nav/components/BlogPostListAll.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/db/getSiteData.js b/lib/db/getSiteData.js index 71b38572..48de0f27 100755 --- a/lib/db/getSiteData.js +++ b/lib/db/getSiteData.js @@ -5,7 +5,7 @@ import getAllPageIds from '@/lib/notion/getAllPageIds' import { getAllTags } from '@/lib/notion/getAllTags' import { getConfigMapFromConfigPage } from '@/lib/notion/getNotionConfig' import getPageProperties, { - adjustPageProperties + adjustPageProperties } from '@/lib/notion/getPageProperties' import { fetchInBatches, getPage } from '@/lib/notion/getPostBlocks' import { compressImage, mapImgUrl } from '@/lib/notion/mapImage' @@ -347,7 +347,6 @@ export function getNavPages({ allPages }) { return ( post && post?.slug && - !post?.slug?.startsWith('http') && post?.type === 'Post' && post?.status === 'Published' ) diff --git a/themes/nav/components/BlogPostListAll.js b/themes/nav/components/BlogPostListAll.js index 9b3bc85c..2f00f75c 100755 --- a/themes/nav/components/BlogPostListAll.js +++ b/themes/nav/components/BlogPostListAll.js @@ -1,9 +1,9 @@ /* eslint-disable */ -import BlogPostListEmpty from './BlogPostListEmpty' -import BlogPostItem from './BlogPostItem' +import { siteConfig } from '@/lib/config' import { useNavGlobal } from '@/themes/nav' import CONFIG from '../config' -import { siteConfig } from '@/lib/config' +import BlogPostItem from './BlogPostItem' +import BlogPostListEmpty from './BlogPostListEmpty' /** * 博客列表滚动分页