fix(search): expand fuse.js search to all pages

This commit is contained in:
MadDogOwner 2025-07-20 18:47:57 +08:00 committed by GitHub
parent 86321e6971
commit 58e30a3a33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import { setEnvProd } from '../utils/env'
export async function generateFuseList(options: ResolvedValaxyOptions) {
consola.start(`Generate List for Fuse Search by (${colors.cyan('fuse.js')}) ...`)
// generate
const files = await fg(`${options.userRoot}/pages/posts/**/*.md`)
const files = await fg(`${options.userRoot}/pages/**/*.md`)
const posts: FuseListItem[] = []
for await (const i of files) {