搭建博客踩坑合集
踩坑
访问 http://localhost:4000/ ,页面显示
extends includes/layout.pug block content include ./includes/mixins/indexPostUI.pug +indexPostUI
。
需要安装运行`1
npm install hexo-renderer-pug hexo-renderer-stylus --save
butterfly官方文档
关于hexo-d时spawn-failed
参考链接[最全]解决将Hexo部署到GitHub时报错:Error: Spawn failed_hexo无法部署到github-CSDN博客
但是,个人觉得==网络问题==,最好的办法5min再来吧
hexo g 以及hexo 是卡住
1
2taskkill /F /IM node.exe
如何解决ssh: connect to host github.com port 22: Connection refused
.ssh下config文件将github的修改如下:
1
2
3Host github.com
Hostname ssh.github.com
Port 443vscode同步博客
从github上clone hexo分支后,vscode能够自动识别git仓库
接下来可以用vscode的插件进行同步,无需再手动操作,同时vscode的markdown更直观
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Yolo-zzy的博客!