We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dda010 commit fa96bc9Copy full SHA for fa96bc9
sites/svelte.dev/src/routes/content.json/content.server.js
@@ -48,14 +48,12 @@ export async function content() {
48
const intro = sections?.shift()?.trim();
49
const rank = +metadata.rank;
50
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
- }
+ blocks.push({
+ breadcrumbs: [...breadcrumbs, removeMarkdown(metadata.title ?? '')],
+ href: get_href([slug]),
+ content: await plaintext(intro),
+ rank
+ });
59
60
for (const section of sections) {
61
const lines = section.split('\n');
0 commit comments