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' /** * 博客列表滚动分页