新增或编写Blog,拉取此分支
Hexo主题文件被忽略。
获取主题,在项目目录下执行git clone。
譬如获取经过我个人修改配置的next主题。
git clone [email protected]:XB-Paul/hexo-theme-next.git themes/next
ps:我建议采用Fork主题仓库的方式,此方式便于获取到主题仓库的更新 和 进行个人配置的修改。
安装npm依赖
$ npm install
$ npm install -g hexo-cli
本地预览
$ hexo g
$ hexo s
写作
$ hexo new <#文章名#>
发布
$ hexo d
清理
$ hexo clean
参考:Hexo官方文档