diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 53c99e0..43455c7 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -99,7 +99,13 @@ export async function getDoc(slug: string) { error(404); } + let folder = slug.replace("/docs/", ""); + if (folder === doc.metadata.title) { + folder = "Topics"; + } + return { + section: folder, component: doc.default, metadata: doc.metadata, title: doc.metadata.title,