Skip to content

Commit

Permalink
fix subsection names
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Feb 3, 2024
1 parent 3a778dd commit 4f3ce84
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 @@ -14,10 +14,10 @@ export async function getStaticPaths() {
section_name: entry,
section_slug: entry.replace(/\.md$/, ''),
children: versioned_tools
.filter((child) => child.id.split('/')[2] === entry)
.filter((child) => child.id.split('/')[2] === entry && child.id.split('/')[3])
.map((tool_entry) => {
return {
title: tool_entry.child.id.split('/')[3].replace(/\.md$/, ''),
title: tool_entry.id.split('/')[3].replace(/\.md$/, ''),
slug: '/tools/' + tool_entry.id.replace(/\.md$/, ''),
};
}),
Expand Down

0 comments on commit 4f3ce84

Please sign in to comment.