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.
1 | $ npm install hexo-cli g |
1 | hexo init blog |
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server 或者 s |
More info: Server
1 | $ hexo generate 或者 g |
More info: Generating
1 | $ hexo deploy 或者 d |
More info: Deployment
安装组件
1 | $ npm install hexo-deployer-git --save |
1 | $ npm ls --depth 0 |
查看所有组件的安装情况,发现N多组件都是error!!!!。把所有error的组件通通安装一遍!通通!通通!问题解决。
themes目录下克隆模版文件
1 | $ git clone https://github.com/shenliyang/hexo-theme-snippet.git |
配置文件_config.yml修改模版名
1 | # Extensions |
重新构建文件一切ok