umberto 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
* The function returns a `page` object that represents the main landing page for given category.
|
|
10
10
|
*
|
|
11
11
|
* @param {String} category
|
|
12
|
+
* @param {String} projectName
|
|
12
13
|
* @param {Object} allPages
|
|
13
14
|
* @param {Array} allPages.data
|
|
14
15
|
* @returns {*}
|
|
15
16
|
*/
|
|
16
|
-
module.exports = function findMainCategoryPage( category, allPages ) {
|
|
17
|
+
module.exports = function findMainCategoryPage( category, projectName, allPages ) {
|
|
17
18
|
return allPages.data
|
|
18
|
-
.filter( page => page.category === category )
|
|
19
|
+
.filter( page => page.category === category && page.projectName === projectName )
|
|
19
20
|
.find( page => page.shortName === 'index' );
|
|
20
21
|
};
|
|
@@ -12,7 +12,7 @@ mixin navTreeLevel( data, isRoot )
|
|
|
12
12
|
|
|
13
13
|
if isRoot
|
|
14
14
|
if data.navigationIncludeIndex
|
|
15
|
-
+navTreeItem( findMainCategoryPage( data.id, site.pages ) )
|
|
15
|
+
+navTreeItem( findMainCategoryPage( data.id, page.projectName, site.pages ) )
|
|
16
16
|
|
|
17
17
|
each item in dataArr
|
|
18
18
|
if item.name
|