Skip to content
Snippets Groups Projects
Commit 13d7bbbe authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

feat: allow category menu items

parent ed4dcb35
No related branches found
No related tags found
1 merge request!58feat: allow category menu items
Pipeline #10100 passed with warnings
......@@ -13,7 +13,7 @@
"@astrojs/tailwind": "^5.1.0",
"@carbon/icons-react": "^11.39.0",
"@fchh/fcos-suite-map": "^0.1.4",
"@fchh/fcos-suite-ui": "^0.2.24",
"@fchh/fcos-suite-ui": "^0.2.25",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.23",
"astro": "^4.5.12",
......@@ -1354,9 +1354,9 @@
}
},
"node_modules/@fchh/fcos-suite-ui": {
"version": "0.2.24",
"resolved": "https://registry.npmjs.org/@fchh/fcos-suite-ui/-/fcos-suite-ui-0.2.24.tgz",
"integrity": "sha512-xDtwe+pkfZc3jt97ApIwaqvH3ERDLFPUfS/zoqnjmSa8fswngTVSrntqNTVZKuVJp4yCvAnTSO2+r/v7gdpiiA==",
"version": "0.2.25",
"resolved": "https://registry.npmjs.org/@fchh/fcos-suite-ui/-/fcos-suite-ui-0.2.25.tgz",
"integrity": "sha512-Ko/ydySKPvbDQDQLK5PjIz6rsOhPDquIpH5BHF/96WpsfIzibnZYIGiGcuqRyhx6OqKXPxEcYLgIRVoo2jC5Ug==",
"dev": true
},
"node_modules/@floating-ui/core": {
......
......@@ -10,4 +10,5 @@ export interface IPage {
date?: string;
author?: string;
translated?: string;
category?: boolean;
}
......@@ -48,7 +48,9 @@ export const buildPageTree = (
parentKey: localizedParentKey,
title: item.frontmatter.title,
...(index > 1
? { target: item.url }
? item.frontmatter.category
? {}
: { target: item.url }
: item.frontmatter.hideChildren
? { target: item.url }
: {}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment