@@ -286,40 +286,6 @@ module.exports = function(grunt) {
286
286
287
287
}
288
288
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
-
323
289
} ;
324
290
325
291
//the patternlab site requires a lot of partials to be rendered.
0 commit comments