$ hexo init <项目名称>
$ cd <项目名称>$ npm install复制代码
启动项目html
$ hexo s复制代码
修改配置_config.yml前端
//修改标题# Site
title: 王新月的博客
subtitle: 前端历程
//修改上传地址# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://github.com/cc/cc.github.io.git
branch: master
复制代码
修改source/_posts/hello-world.md,你就获得了下面的页面node
$ npm install hexo-browsersync --save复制代码
$ npm install hexo-deployer-git --save复制代码
$ hexo g //打包
$ hexo d //上传到github 复制代码
https://cc.github.io.git (cc是你到github用户名)git
这里推荐yilia主题github
$ cd ./themes/
$ git clone https://github.com/JoeyBling/hexo-theme-yilia-plus.git ./yilia-plus复制代码
修改配置文件npm
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: yilia-plus复制代码
从新构建并重启bash
$ hexo g //打包
$ hexo s//重启
$ hexo clean //若是未生效后在从新hexo g
$ hexo d //上传到github
复制代码
若是你想要其余主题能够在官方下载:hexo.io/themes/hexo
王新月的博客
叽里咕噜改配置post