Skip to content

Commit

Permalink
fix: Fix search loading on simple docs (without langs)
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 18, 2024
1 parent 6b8c2b5 commit 4c11edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/md2html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const getFileProps = async (options: ResolverOptions) => {
},
router: {
pathname,
depth: pathname.split('/').length,
depth: inputPath.split('/').length,
},
lang,
langs,
Expand Down

0 comments on commit 4c11edc

Please sign in to comment.