handle empty site file

This commit is contained in:
AJ ONeal 2015-01-14 05:38:32 -05:00
parent b7d7de134f
commit cd60311427
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@
desi.config.assets = { 'media': {} }; desi.config.assets = { 'media': {} };
} }
if (!Array.isArray(desi.site.navigation) || !desi.site.navigation.length) {
desi.site.navigation = ['archive'];
}
var collectionnames = Object.keys(desi.config.collections) var collectionnames = Object.keys(desi.config.collections)
, themenames = Object.keys(desi.config.themes) , themenames = Object.keys(desi.config.themes)
.filter(function (k) { return 'default' !== k; }) .filter(function (k) { return 'default' !== k; })