fix(site): Search (#10023)

* Push

* Take in all sections
pull/10024/head
Puru Vijay 2 years ago committed by GitHub
parent 5dda0105fd
commit fa96bc91d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,14 +48,12 @@ export async function content() {
const intro = sections?.shift()?.trim();
const rank = +metadata.rank;
if (intro) {
blocks.push({
breadcrumbs: [...breadcrumbs, removeMarkdown(metadata.title ?? '')],
href: get_href([slug]),
content: await plaintext(intro),
rank
});
}
blocks.push({
breadcrumbs: [...breadcrumbs, removeMarkdown(metadata.title ?? '')],
href: get_href([slug]),
content: await plaintext(intro),
rank
});
for (const section of sections) {
const lines = section.split('\n');

Loading…
Cancel
Save