diff --git a/scripts/src/sidebar.ts b/scripts/src/sidebar.ts index 764cdc0..6ceab42 100644 --- a/scripts/src/sidebar.ts +++ b/scripts/src/sidebar.ts @@ -27,7 +27,7 @@ function buildSidebar(aeps: AEP[], groups: any): Sidebar { for (var group of groups.categories) { response.push({ 'label': group.title, - 'items': aeps.filter((aep) => aep.category == group.code).sort((a1, a2) => a1.order > a2.order ? 1 : -1).map((aep) => aep.slug) + 'items': aeps.filter((aep) => aep.category == group.code).sort((a1, a2) => a1.order > a2.order ? 1 : -1).map((aep) => ({label: `${aep.id}. ${aep.title}`, link: aep.slug})) }) } return response as Sidebar;