Skip to content

Commit 119a227

Browse files
committed
fix: remove blog from search
1 parent 2b17fe4 commit 119a227

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/.vitepress/config.mts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ export default defineVersionedConfig(
6969
_render(src, env, md) {
7070
const html = md.render(src, env)
7171

72-
const startsWithV1 = env.relativePath.startsWith('versions/v1')
73-
const startsWithV2 = env.relativePath.startsWith('versions/v2')
72+
const withV1 = env.relativePath.startsWith('versions/v1')
73+
const withV2 = env.relativePath.startsWith('versions/v2')
74+
const withBlog = env.relativePath.startsWith('blog')
7475

75-
if (startsWithV1 || startsWithV2) {
76+
if (withV1 || withV2 || withBlog) {
7677
return ''
7778
}
7879

0 commit comments

Comments
 (0)