Hexo Quick Start
Requirements
- Node.js
- Git
- Create Github repository [username.github.io]
1.Install Hexo
1
| $ npm install -g hexo-cli
|
2.initialize
1 2 3
| $ hexo init <folder> $ cd <folder> $ npm install
|
3.configuration _config.yml file
more info: Configuration
4.Create a new post
1
| $ hexo new "My New Post"
|
More info: Writing
5.Run server
6.Generate static files And Deploy to remote Repository
1 2
| $ hexo generate $ hexo deploy
|
Issue
if ERROR Deployer not found: git
1
| $ npm install hexo-deployer-git --save
|
_config.yml plugins add
1 2
| plugins: - hexo-deployer-git
|