hexo-theme-indigo使用遇到的问题


Hexo 主题地址

  • https://github.com/yscoder/hexo-theme-indigo

    问题

  • 主页的导航栏关闭的×按钮,以及搜索按钮,分享按钮,每次点击出现动画前都会新打开一个about:blank#blocked页面。查看html发现相应的 a标签中都有 target=’_blank’
  • 可能是在编译的时候默认把a标签的target属性自动补上了,要是a标签本身就有target这个属性就不会往上加了

解决:

  • 菜单关闭按钮
    • 打开themes\indigo\layout_partial\menu.ejs
    • 找到 id=”menu-off” 的a标签
    • 在a标签上新增 target=””
  • 搜索图标菜单关闭按钮
    • 打开themes\indigo\layout_partial\header.ejs
    • 找到 id=”search” 的a标签
    • 在a标签上新增 target=””
  • 右侧分享按钮
    • 打开 themes\indigo\layout_partial\header.ejs
    • 找到 id=”menuShare” 的a标签
    • 在a标签上新增 target=””
  • 点击赞赏按钮、关闭赞赏框
    • 打开 themes\indigo\layout_partial\post.ejs
    • 找到 id=”rewardBtn” 的a标签
    • 在a标签上新增 target=””
    • 打开 themes\indigo\layout_partial\post\reward.ejs
    • 找到 id=”rewardOff” 的a标签
    • 在a标签上新增 target=””

      问题

  • 上传GitHub是网络连接超时
    fatal: unable to access 'https://github.com/Damao2250/damao2250.github.io/': OpenSSL SSL_read: Connection was reset, errno 10054
  • 这是因为配置文件配置deploy仓库地址为https的原因

解决

  • 配置_config.yml下的deployrepogit@xxx.git
    ```bash
    deploy:
    type: ‘git’
    repo: ‘git@github.com:Damao2250/damao2250.github.io.git’
    branch: ‘master’
    ···

文章作者: Damao
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Damao !
  目录