Hexo使用命令生成文章
五月 20, 2020
Hexo使用命令生成文章
- hexo new <文章类型> [文章名称]
$ hexo new post post1 #在source/_posts/路径下生成post1.md和post1/ |
即,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.
查看评论