update log paths, update desirae

This commit is contained in:
AJ ONeal 2015-01-17 18:16:04 -07:00
parent ccdac994c0
commit da392e9ae6
3 changed files with 17 additions and 6 deletions

View File

@ -68,7 +68,8 @@ function createPost(originalDir, blogdir, title, extra) {
process.exit(1); process.exit(1);
} }
var env = {} var desi = {}
, env = {}
, post = {} , post = {}
, slug , slug
, filepath , filepath
@ -77,7 +78,7 @@ function createPost(originalDir, blogdir, title, extra) {
env.working_path = env.blogdir = blogdir; env.working_path = env.blogdir = blogdir;
Desi._initFileAdapter(env).then(function () { Desi.init(desi, 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(/^\/$/, ''); env.url = desi.site.base_url + desi.site.base_path.replace(/^\/$/, '');
@ -137,13 +138,23 @@ function createPost(originalDir, blogdir, title, extra) {
} else { } else {
throw err; throw err;
} }
return;
} }
console.log(''); console.log('');
console.log(displaypath); console.log(displaypath);
console.log(''); console.log('');
console.log('Markdown: [' + post.title + ']('
+ desi.site.base_url
+ path.join(desi.site.base_path, post.permalink)
+ ')'
);
console.log('HTML: <a href="'
+ desi.site.base_url
+ path.join(desi.site.base_path, post.permalink)
+ '">' + post.title + '</a>'
);
console.log('');
console.log('');
console.log('vim ' + displaypath); console.log('vim ' + displaypath);
console.log('(or emacs ' + displaypath + ', if you swing that way)'); console.log('(or emacs ' + displaypath + ', if you swing that way)');
console.log(''); console.log('');

View File

@ -38,7 +38,7 @@
"html5-boilerplate": "~4.3.0", "html5-boilerplate": "~4.3.0",
"bootstrap": "~3.3.1", "bootstrap": "~3.3.1",
"md5": "~0.1.3", "md5": "~0.1.3",
"desirae": "~0.9.9", "desirae": "~0.9.10",
"desirae-datamap-ruhoh": "~1.0.0" "desirae-datamap-ruhoh": "~1.0.0"
} }
} }

View File

@ -44,7 +44,7 @@
"connect": "^3.3.4", "connect": "^3.3.4",
"connect-query": "^0.2.0", "connect-query": "^0.2.0",
"connect-send-json": "^1.0.0", "connect-send-json": "^1.0.0",
"desirae": "^0.9.9", "desirae": "^0.9.10",
"desirae-datamap-ruhoh": "^1.0.0", "desirae-datamap-ruhoh": "^1.0.0",
"fs.extra": "^1.3.0", "fs.extra": "^1.3.0",
"node-uuid": "^1.4.2", "node-uuid": "^1.4.2",