119 |
({ |
({ |
120 |
name: page.short_name ?? "Unnamed", |
name: page.short_name ?? "Unnamed", |
121 |
url: page.url, |
url: page.url, |
122 |
} satisfies DocsPageWithoutChildren), |
}) satisfies DocsPageWithoutChildren, |
123 |
); |
); |
124 |
const pages: Record<string, DocsPageWithoutChildren[]> = {}; |
const pages: Record<string, DocsPageWithoutChildren[]> = {}; |
125 |
|
|
214 |
return acc; |
return acc; |
215 |
}, []); |
}, []); |
216 |
}; |
}; |
217 |
|
|
218 |
|
export const isBlogPath = (path: string) => { |
219 |
|
return path.startsWith("/blog/") || path === "/blog"; |
220 |
|
}; |