Skip to content

Commit 9d81acc

Browse files
committed
fix(search): use page title as default title for sections
1 parent 1787d8b commit 9d81acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/server/search.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export function splitPageIntoSections (page: ParsedContent, { ignoredTags }: { i
7777
if (!sections[section]) {
7878
sections[section] = {
7979
id: path,
80-
title: '',
80+
title: page.title || '',
8181
titles: [],
8282
content: '',
83-
level: 0
83+
level: 1
8484
}
8585
}
8686

0 commit comments

Comments
 (0)