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
具体安装过程
初始化以及生成网站
1 | $ npm install hexo-cli -g # 这步是安装hexo的命令行 |
配置
repo 是Github的项目的链接地址1
2
3
4deploy:
type: git
repo: git@github.com:xxx.git
branch: master
部署
1 | $ npm install hexo-deployer-git --save # 需要安装这个插件 |
安装插件
在_config.yml配置文件中添加插件信息
1 | plugins: |