diff --git a/src/lib/utils.ts b/src/lib/utils.ts index e8898ef..9ac1f03 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -104,8 +104,11 @@ export async function getDoc(slug: string) { } let folder = capitalize(slug.replace("/docs/", "")); + if (folder === doc.metadata.title) { folder = "Topics"; + } else { + folder = folder.split("/")[0] } return {