Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato authored Dec 24, 2024
1 parent f922163 commit 41922d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 41922d4

Please sign in to comment.