V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xiaohantx
V2EX  ›  问与答

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

  •  
  •   xiaohantx · 2019-02-22 10:31:22 +08:00 · 1975 次点击
    这是一个创建于 1908 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目前会自动新建到 source/_posts 下想比如新建到 source/_posts/type 下该怎么设置
    5 条回复    2019-02-22 15:02:17 +08:00
    xiaohantx
        1
    xiaohantx  
    OP
       2019-02-22 11:10:58 +08:00
    _(:з」∠)_求解
    rizon
        2
    rizon  
       2019-02-22 11:27:47 +08:00   ❤️ 1
    ```
    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
        3
    xiaohantx  
    OP
       2019-02-22 13:43:31 +08:00
    @rizon 感谢
    Track13
        4
    Track13  
       2019-02-22 15:01:08 +08:00 via Android
    hexo 写文章不都是打开 md 编辑器,写完自己选文章存吗?这个命令从来没有用过
    Track13
        5
    Track13  
       2019-02-22 15:02:17 +08:00 via Android
    上面打错字了,就是都是手动保存。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1016 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 111ms · UTC 21:00 · PVG 05:00 · LAX 14:00 · JFK 17:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.