From cd603114274a73ab42ddc137e8bd2c865a213d95 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 14 Jan 2015 05:38:32 -0500 Subject: [PATCH] handle empty site file --- desirae.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desirae.js b/desirae.js index 8d10bd7..245eba7 100644 --- a/desirae.js +++ b/desirae.js @@ -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; })