Compare commits

..

2 Commits

Author SHA1 Message Date
AJ ONeal a9cb7a58a3 0.11.6 2020-11-08 20:03:42 -07:00
AJ ONeal c81ff7a441 bugfix missing navigation links 2020-11-08 20:03:30 -07:00
3 changed files with 16 additions and 16 deletions

View File

@ -405,20 +405,20 @@
desi.config.rootdir = desi.config.rootdir || "_root";
// TODO create a config linter as a separate module
/*
if ('object' !== typeof desi.config.collections || !Object.keys(desi.config.collections).length) {
desi.config.collections = { 'posts': {} };
}
if ('object' !== typeof desi.config.themes || !Object.keys(desi.config.themes).length) {
desi.config.themes = { 'ruhoh-twitter': {} };
}
if ('object' !== typeof desi.config.assets || !Object.keys(desi.config.assets).length) {
desi.config.assets = { 'media': {} };
}
if ('object' !== typeof desi.config.collections || !Object.keys(desi.config.collections).length) {
desi.config.collections = { 'posts': {} };
}
if ('object' !== typeof desi.config.themes || !Object.keys(desi.config.themes).length) {
desi.config.themes = { 'ruhoh-twitter': {} };
}
if ('object' !== typeof desi.config.assets || !Object.keys(desi.config.assets).length) {
desi.config.assets = { 'media': {} };
}
if ('string' !== typeof desi.site.theme) {
desi.site.theme = 'ruhoh-twitter';
}
*/
if ('string' !== typeof desi.site.theme) {
desi.site.theme = 'ruhoh-twitter';
}
*/
if (
!Array.isArray(desi.site.navigation) ||
!desi.site.navigation.length
@ -671,7 +671,7 @@
}
// TODO add missing metadata and resave file
desi.navigation = [];
desi.navigation = desi.site.navigation || [];
desi.content.root.forEach(function (entity) {
var name = path.join(

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "desirae",
"version": "0.11.5",
"version": "0.11.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "desirae",
"version": "0.11.5",
"version": "0.11.6",
"description": "An in-browser static blog library and static site generator. Similar to Jekyll, Octopress, Nanoc, etc",
"main": "desirae.js",
"scripts": {