初始化博客

安装node.js
https://nodejs.org/en/
下载最新版安装
安装配置hexo
$ npm install -g hexo-cli
$ hexo

参考:http://www.jianshu.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
发布
cd /Users/zerotech/web/wywdev

hexo server

http://localhost:4000/

hexo generate


hexo deploy


npm install hexo-deployer-git --save

hexo deploy

你可能感兴趣的:(初始化博客)