Hello Hexo

Hello Hexo

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

npm install -g hexo

初始化Hexo

1
hexo init

在_config.yml,进行基础配置(博客名,作者,主题)

常用命令

1
2
3
4
hexo g

hexo s
hexo clean && hexo s

在_config.yml,进行基础配置(deployment)

安装hexo-deployer-git自动部署发布工具

1
npm install hexo-deployer-git  --save

发布到Github

1
hexo clean && hexo g && hexo d

https://hexo.io/docs/deployment.html)