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.
前期准备
要使用hexo,首先你需要检测电脑上是否已经安装下列应用程序:
如果已经安装上述必备程序,那么接下来只需要使用 npm 即可完成 Hexo 的安装。
npm install -g hexo-cli
Quick Start
Initial project
hexo init blog
Create a new post
hexo new "My New Post"
More info: Writing
Run server
hexo server
Or
hexo s
More info: Server
Deploy
Install git deploy plugin
npm install hexo-deployer-git --save
Configure
open file "_config.yml" in the project at first level, and configure deploy node.
deploy:
type: git
repo: git url
branch: master
Clean browser cache
hexo clean
Generate static files
hexo generate
Or
hexo g
More info: Generating
Deploy to remote sites
hexo deploy
Or
hexo d
More info: Deployment
There is no details about github page configure, about more info please google.