Skip to content

Commit

Permalink
fix sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Feb 3, 2024
1 parent bd9e0bc commit 3a778dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/tools/docs/[version]/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export async function getStaticPaths() {
.filter((child) => child.id.split('/')[2] === entry)
.map((tool_entry) => {
return {
title: tool_entry.data.title,
slug: 'tools/' + tool_entry.id.replace(/\.md$/, ''),
title: tool_entry.child.id.split('/')[3].replace(/\.md$/, ''),
slug: '/tools/' + tool_entry.id.replace(/\.md$/, ''),
};
}),
};
Expand Down

0 comments on commit 3a778dd

Please sign in to comment.