Skip to content

Commit 4f9c50b

Browse files
committed
remove view all code
fixes #2
1 parent 4b5e4e2 commit 4f9c50b

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

builder/patternlab.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -286,40 +286,6 @@ module.exports = function(grunt) {
286286

287287
}
288288

289-
//check to see if this bucket has a View All yet. If not, add it.
290-
// var navItem = bucket.navItems[navItemIndex];
291-
// if(navItem){
292-
// var hasViewAll = navItem.navSubItemsIndex.indexOf('View All');
293-
// if(hasViewAll === -1){
294-
// console.log('add a view all pattern');
295-
296-
// var navSubItem = new oNavSubItem('View All');
297-
// navSubItem.patternPath = pattern.flatPatternPath + '/index.html'; //this is likely wrong
298-
// navSubItem.patternPartial = 'viewall-' + bucketName + '-' + pattern.patternSubGroup;
299-
300-
// //add the navSubItem
301-
// console.log(navSubItem);
302-
// navItem.navSubItems.push(navSubItem);
303-
// navItem.navSubItemsIndex.push('View All');
304-
// }
305-
// }
306-
}
307-
308-
//VIEW ALL LOGIC CAN LOOP THROUGH PATTERNS TOO
309-
//only add if it's an atom, molecule, or organism
310-
// if(pattern.patternGroup === 'atoms' || pattern.patternGroup === 'molecules' || pattern.patternGroup === 'organisms'){
311-
// if(patternlab.viewAllPaths[pattern.patternGroup]){
312-
313-
// //add the pattern sub-group
314-
// patternlab.viewAllPaths[pattern.patternGroup][pattern.patternSubGroup] = pattern.flatPatternPath;
315-
// }
316-
// else{
317-
// //add the new group then the subgroup
318-
// patternlab.viewAllPaths[pattern.patternGroup] = {};
319-
// patternlab.viewAllPaths[pattern.patternGroup][pattern.patternSubGroup] = pattern.flatPatternPath;
320-
// }
321-
// }
322-
323289
};
324290

325291
//the patternlab site requires a lot of partials to be rendered.

0 commit comments

Comments
 (0)