Hexo

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

部署到github上

修改_config.yml配置文件

1
2
3
4
deploy:
type: git
repository: https://github.com/*****/*****.github.io.git
branch: master

repository为你自己的GitHub Pages地址
第一次部署到github时,会报没有创建本地仓库,解决办法:不要git init,删除.deploy_git文件夹,重新部署即可。

注意: 修改_config.yml配置文件时,: 后面一定要加空格。