-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts功能 #37
Comments
函數內有引入target變數嗎? var spawn = require('child_process').spawn;
hexo.on('newPost', function(target){
spawn('open', [target]);
}); |
这个就不太懂了,因为不是搞开发的。我的系统是mac os 10.8.2,想直接调用Mou编辑blog的话,这个script应该怎么写?在 2013-1-7,上午10:47,SkyArrow notifications@github.com 写道:函數內有引入target變數嗎? var spawn = require('child_process').spawn; hexo.on('newPost', function(target){
|
像那樣寫應該就會自動開啟對應的Markdown編輯器了 |
但是确实报错了 |
改為
|
这回ok了,感谢!在 2013-1-7,上午11:02,SkyArrow notifications@github.com 写道:hexo.on('newPost', function(){ hexo.on('newPost', function(target){
|
…_bar Add pagination bar in archives page
按照文档添加了自动打开newpost的功能,但是报错。
The text was updated successfully, but these errors were encountered: