@ -206,13 +206,15 @@ router.post('/init', function (req, res) {
'---\n' +
index.content;
fs.writeFile('content/pages/index.md', init)
fs.ensureDir('content/pages/').then(() => {
.then(() => {
console.log('index file created');
})
//console.log('index file created');
.catch(err => {
console.log('ERROR', err);
.catch(() => {
});
//console.log('ERROR', err);
res.json({