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
CLEAN
1 | $ hexo clean |
Run server
1 | $ hexo server / hexo s |
More info: Server
Generate static files
1 | $ hexo generate / hexo g |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy / hexo d |
补充
Q: github 403
A: hexo用户和git默认用户不一致,增加新用户并在~/.ssh/config配置,另外在_config.yml中https改为sshQ: next主题设置失败
A: 原因是hexo在5.0之后把swig给删除了需要自己手动安装 npm i hexo-renderer-swig参考:https://zhuanlan.zhihu.com/p/26625249
Q:hexo多机部署主题丢失
参考:https://mindawei.github.io/2018/05/01/%E5%A4%9A%E6%9C%BA%E4%BD%BF%E7%94%A8Hexo%E5%8D%9A%E5%AE%A2/
More info: Deployment