Skip to content

Commit 3220bf4

Browse files
committed
修复nav主题外链
1 parent b13c54e commit 3220bf4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/db/getSiteData.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import getAllPageIds from '@/lib/notion/getAllPageIds'
55
import { getAllTags } from '@/lib/notion/getAllTags'
66
import { getConfigMapFromConfigPage } from '@/lib/notion/getNotionConfig'
77
import getPageProperties, {
8-
adjustPageProperties
8+
adjustPageProperties
99
} from '@/lib/notion/getPageProperties'
1010
import { fetchInBatches, getPage } from '@/lib/notion/getPostBlocks'
1111
import { compressImage, mapImgUrl } from '@/lib/notion/mapImage'
@@ -347,7 +347,6 @@ export function getNavPages({ allPages }) {
347347
return (
348348
post &&
349349
post?.slug &&
350-
!post?.slug?.startsWith('http') &&
351350
post?.type === 'Post' &&
352351
post?.status === 'Published'
353352
)

themes/nav/components/BlogPostListAll.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable */
2-
import BlogPostListEmpty from './BlogPostListEmpty'
3-
import BlogPostItem from './BlogPostItem'
2+
import { siteConfig } from '@/lib/config'
43
import { useNavGlobal } from '@/themes/nav'
54
import CONFIG from '../config'
6-
import { siteConfig } from '@/lib/config'
5+
import BlogPostItem from './BlogPostItem'
6+
import BlogPostListEmpty from './BlogPostListEmpty'
77

88
/**
99
* 博客列表滚动分页

0 commit comments

Comments
 (0)