Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

参考:

ubuntu15.04安装hexo
Hexo 3.1.1 静态博客搭建指南
hexo不同电脑之间同步写博客

Requirements

nodejs

1
2
wget -qO- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
nvm install stable

git

1
sudo apt-get install git

install hexo

1
npm install -g hexo-cli

Quick Start

init

1
2
3
hexo init
npm install #安装依赖包
npm install hexo-deployer-git --save

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment