$ 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