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
More Links
干掉这里的bug:https://www.wangtianyi.top/
https://liushiqi.xyz/zawen/1.html
https://www.cnblogs.com/hujunzheng/p/10887937.html#autoid-5-0-0
https://morning-pro.github.io/categories/Redis/
Getting Help
本地启动测试:
1 | $ hexo s |
发布
1 | $ hexo clean && hexo g && hexo d |
常用命令
1 | hexo new "postName" #新建文章 |
Hexo 使用经验
- 插入本地图片:
1 |  |
- 锚点目录生成不规则-临时解决方案:使用h4标题,参考文章:Git 实战分享
- 锚点目录生成不规则-终极解决方案:https://www.jianshu.com/p/588ab3d22eb8(后续优化)
- 换机方法:
1 | 将本级整个目录拷贝到另一台机器wangqi-jeffrey.github.io |
未解决问题
多台Mac同步后,博客更新日期不一致问题
图片不展示问题-临时解决方案:单台机器发布
图片不展示问题-终极解决方案:
https://github.com/xcodebuild/hexo-asset-image/issues/47
/Users/jeffrey/wangqi-jeffrey.github.io/node_modules/hexo-asset-image
注意事项:
- node版本:v12.19.0;高版本会报错