handle empty site file
This commit is contained in:
parent
b7d7de134f
commit
cd60311427
|
@ -264,6 +264,10 @@
|
|||
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)
|
||||
, themenames = Object.keys(desi.config.themes)
|
||||
.filter(function (k) { return 'default' !== k; })
|
||||
|
|
Loading…
Reference in New Issue