Hexo 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.

Quick Start

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

hexo algolia

1
2
$ export HEXO_ALGOLIA_INDEXING_KEY=[algolia.apiKey]
$ hexo algolia

CI with jenkins

使用Jenkins实现Hexo自动部署

hexo使用jenkins自动部署到阿里云

###Cooperation

  1. 使用git clonegit@github.com:vincentruan/vincentruan.github.io.git拷贝仓库(git checkout -b hexo);

  2. 在新拷贝的vincentruan.github.io文件夹下通过Git bash依次执行下列指令:

    npm install hexo-cli -g(首次安装)、npm install hexo、npm install、npm install hexo-deployer-git(记得,不需要hexo init这条指令,如果不慎在此时用了hexo init,则站点的配置文件_config.yml里面内容会被清空使用默认值,所以这一步一定要慎重 )