踩坑

  1. 访问 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
  2. butterfly官方文档

    Butterfly 文檔(二) 主題頁面 | Butterfly

  3. 关于hexo-d时spawn-failed
    参考链接

    [最全]解决将Hexo部署到GitHub时报错:Error: Spawn failed_hexo无法部署到github-CSDN博客

    但是,个人觉得==网络问题==,最好的办法5min再来吧

  4. hexo g 以及hexo 是卡住

    1
    2
    taskkill /F /IM node.exe

  5. 如何解决ssh: connect to host github.com port 22: Connection refused

    .ssh下config文件将github的修改如下:

    1
    2
    3
    Host github.com
    Hostname ssh.github.com
    Port 443
  6. vscode同步博客
    从github上clone hexo分支后,vscode能够自动识别git仓库
    接下来可以用vscode的插件进行同步,无需再手动操作,同时vscode的markdown更直观