update log paths, update desirae
This commit is contained in:
parent
ccdac994c0
commit
da392e9ae6
|
@ -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: <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('(or emacs ' + displaypath + ', if you swing that way)');
|
||||
console.log('');
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue