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

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

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