0%

Questions found in building blog

博客建立相关问题

记录博客建立时的一些问题和解决方式。持续更新…

新手教程

  1. Hexo原理解析: https://segmentfault.com/a/1190000008784436?utm_source=sf-similar-article

  2. Hexo Documents: https://hexo.io/docs/

  3. 使用Github Pages和Hexo, 关于头像,主题文字,链接等均可以在 主题配置文件站点配置文件 更改。

    url: https://godweiyang.com/2018/04/13/hexo-blog/

主题美化&添加功能

  1. 修改主题:https://www.jianshu.com/p/33bc0a0a6e90 20210411

  2. 设置背景线条: https://blog.csdn.net/baidu_34310405/article/details/102463142

  3. 设置小恐龙404:
    https://geniucker.vercel.app/2020/07/23/%E7%94%A8Chrome%E5%B0%8F%E6%81%90%E9%BE%99dino%E5%88%B6%E4%BD%9Chexo%E7%9A%84404%E9%A1%B5%E9%9D%A2/ 小恐龙暂时没有试验成功,改天再试。

  4. 统计文章阅读量功能:https://bjtu-hxs.github.io/2018/06/12/leancloud-config/ 20210413

    有可能出现的问题, counter没有在计数: https://blog.csdn.net/w573719227/article/details/100704952

    https://github.com/theme-next/hexo-leancloud-counter-security

  5. 添加图片&图床20210416

    我用的是PicGo+VScode.教程参考:

    1. 添加图床&设置VScode: https://blog.csdn.net/kan2016/article/details/107507809
    2. 单独下载PicGo与Typro,markdown简单应用:https://blog.csdn.net/weixin_45753924/article/details/105414176
      https://molunerfinn.com/PicGo/
  6. Night Mode

    链接: https://github.com/1v9/hexo-next-nightmode

    1. 问题:After change to night model, it only changes background color to black..

问题

  1. Hexo本地显示正常,上传到Github只显示内容没有样式。 可以尝试网上方式更改站点配置文件里面的url和root。我出现了一样的问题,并不是将github给的网址和root分开,而是直接一整个url+root
    e.g. 网上例子是让你

    url:https://username.github.io/

    root: username.github.io 这里是你github 仓库当时设置的名字

    但是我的解决方式是 直接

    url: url+root 就解决了