Skip to content

Commit fa96bc9

Browse files
authored
fix(site): Search (#10023)
* Push * Take in all sections
1 parent 5dda010 commit fa96bc9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

sites/svelte.dev/src/routes/content.json/content.server.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ export async function content() {
4848
const intro = sections?.shift()?.trim();
4949
const rank = +metadata.rank;
5050

51-
if (intro) {
52-
blocks.push({
53-
breadcrumbs: [...breadcrumbs, removeMarkdown(metadata.title ?? '')],
54-
href: get_href([slug]),
55-
content: await plaintext(intro),
56-
rank
57-
});
58-
}
51+
blocks.push({
52+
breadcrumbs: [...breadcrumbs, removeMarkdown(metadata.title ?? '')],
53+
href: get_href([slug]),
54+
content: await plaintext(intro),
55+
rank
56+
});
5957

6058
for (const section of sections) {
6159
const lines = section.split('\n');

0 commit comments

Comments
 (0)