安装 Hexo Cli

1
npm i -g hexo-cli

验证安装

1
hexo -v

指定目录(空目录)

1
hexo init

得到下面的目录
image.png

配置主题

1
git submodule add theme地址 themes/地址名称 

image.png

修改_config.yml 文件

修改 theme 选项为自己的主题名称
image.png

hexo 指令

1
2
3
hexo cl
hexo g
hexo s

启动成功