hexo new post 的时候如何修改新建到的文件夹

2019-02-22 10:31:22 +08:00
 xiaohantx
目前会自动新建到 source/_posts 下想比如新建到 source/_posts/type 下该怎么设置
1979 次点击
所在节点    问与答
5 条回复
xiaohantx
2019-02-22 11:10:58 +08:00
_(:з」∠)_求解
rizon
2019-02-22 11:27:47 +08:00
```
Usage: hexo new [layout] <title>

Description:
Create a new post.

Arguments:
layout Post layout. Use post, page, draft or whatever you want.
title Post title. Wrap it with quotations to escape.

Options:
-p, --path Post path. Customize the path of the post.
-r, --replace Replace the current post if existed.
-s, --slug Post slug. Customize the URL of the post.
```
xiaohantx
2019-02-22 13:43:31 +08:00
@rizon 感谢
Track13
2019-02-22 15:01:08 +08:00
hexo 写文章不都是打开 md 编辑器,写完自己选文章存吗?这个命令从来没有用过
Track13
2019-02-22 15:02:17 +08:00
上面打错字了,就是都是手动保存。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/537529

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX