From da392e9ae6bbecfc8d7927e13fc8390bd57df777 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 17 Jan 2015 18:16:04 -0700 Subject: [PATCH] update log paths, update desirae --- bin/deardesi.js | 19 +++++++++++++++---- bower.json | 2 +- package.json | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/bin/deardesi.js b/bin/deardesi.js index 9d624a6..dd99015 100755 --- a/bin/deardesi.js +++ b/bin/deardesi.js @@ -68,7 +68,8 @@ function createPost(originalDir, blogdir, title, extra) { process.exit(1); } - var env = {} + var desi = {} + , env = {} , post = {} , slug , filepath @@ -77,7 +78,7 @@ function createPost(originalDir, blogdir, title, extra) { env.working_path = env.blogdir = blogdir; - Desi._initFileAdapter(env).then(function () { + Desi.init(desi, env).then(function () { /* Desi.init(desi, env).then(function () { env.url = desi.site.base_url + desi.site.base_path.replace(/^\/$/, ''); @@ -137,13 +138,23 @@ function createPost(originalDir, blogdir, title, extra) { } else { throw err; } - - return; } console.log(''); console.log(displaypath); console.log(''); + console.log('Markdown: [' + post.title + '](' + + desi.site.base_url + + path.join(desi.site.base_path, post.permalink) + + ')' + ); + console.log('HTML: ' + post.title + '' + ); + console.log(''); + console.log(''); console.log('vim ' + displaypath); console.log('(or emacs ' + displaypath + ', if you swing that way)'); console.log(''); diff --git a/bower.json b/bower.json index 88d2b1b..91c62d4 100644 --- a/bower.json +++ b/bower.json @@ -38,7 +38,7 @@ "html5-boilerplate": "~4.3.0", "bootstrap": "~3.3.1", "md5": "~0.1.3", - "desirae": "~0.9.9", + "desirae": "~0.9.10", "desirae-datamap-ruhoh": "~1.0.0" } } diff --git a/package.json b/package.json index 92b3b90..a6eab5a 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "connect": "^3.3.4", "connect-query": "^0.2.0", "connect-send-json": "^1.0.0", - "desirae": "^0.9.9", + "desirae": "^0.9.10", "desirae-datamap-ruhoh": "^1.0.0", "fs.extra": "^1.3.0", "node-uuid": "^1.4.2",