Skip to content

Commit

Permalink
fix(search): use page title as default title for sections
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jun 7, 2024
1 parent 1787d8b commit 9d81acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export function splitPageIntoSections (page: ParsedContent, { ignoredTags }: { i
if (!sections[section]) {
sections[section] = {
id: path,
title: '',
title: page.title || '',
titles: [],
content: '',
level: 0
level: 1
}
}

Expand Down

0 comments on commit 9d81acc

Please sign in to comment.