本篇主要步骤
- 1、创建博客
 
1、创建博客
使用 $ hexo new [layout] <title>命令创建一篇新的博客。
PS hexo> npx hexo new post "test"
Debugger attached.
Debugger attached.
INFO  Validating config
INFO  Created: D:\hexo\source\_posts\test.md
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
 
如上就会在 _posts路径下创建一个新的 md格式文件;_posts路径下的文件都可以在博客首页看见:
 
 layout 布局方式一共有三种类型:post、page、draft:
post:发布路径,博客可直接查看;
page:会在 source 路径下创建一个新的路径,相当于草稿,不会生成静态文件;
draft:草稿路径,publish 之后会被发布到_posts路径下。



















