安裝node.js
https://nodejs.org/en/
下載最新版安裝
安裝配置hexo
$ npm install -g hexo-cli
$ hexo
參考:http://www.reibang.com/p/e99ed60390a8
初始化博客
hexo init wywdev
cd wywdev
npm install
修改_config.yml文件
title: devwyw
subtitle: devwyw
description: devwyw
author: devwyw
language: zh-CN
timezone: Asia/Shanghai
url: https://devwyw.github.io/
theme: tranquilpeak
post_assert_folder: true
deploy:
type: git
repo: https://github.com/devwyw/devwyw.github.io.git
branch: master
參考 https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak/blob/master/docs/developer.md#bower-dependencies
替換成tranquilpeak皮膚
git clone https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak.git
cd /Users/zerotech/web/wywdev/themes/tranquilpeak
theme: tranquilpeak
post_assert_folder: true
npm install hexo-cli -g
npm install grunt-cli -g
npm install bower -g
npm install
bower install
grunt build
發(fā)布
cd /Users/zerotech/web/wywdev
hexo server
http://localhost:4000/
hexo generate
hexo deploy
npm install hexo-deployer-git --save
hexo deploy