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