Candinya / Kratos-Rebirth

一个可爱而现代的 Hexo 主题
GNU General Public License v3.0
638 stars 79 forks source link

Bug 回报:添加github page链接后,部署后无法加载背景图片 #91

Closed Zheng-Suijian closed 2 years ago

Zheng-Suijian commented 2 years ago
  1. 对Bug的描述: 添加github page链接后,部署后无法加载背景图片,不添加链接又加载不了js和css 添加链接前,本地可以正常加载,但是部署到github上加载不了js和css image

  2. 复现Bug的方法:

可以使用如下的方案进行复现:

  1. 前往 'image 添加链接后就不行了'

  2. 点击 '....'

  3. 滚动到 '....'

  4. 看,出错了吧!

  5. 期望的行为:

  6. 相关的截图:

    image 添加前 image image 这个是添加链接前部署到github

  7. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):

    • 操作系统: win10
    • 浏览器: chrome
    • 版本: chrome 95.0.4638.54
  8. 补充内容:

Candinya commented 2 years ago

您可以尝试添加 root 参数为您的 project 名(如 /Javelin.github.io/ )。 详情可以参见 Hexo 文档 - 网址 image

Zheng-Suijian commented 2 years ago

您好,       我按您的提示添加了root行,可是还是无法正常加载,请问还有可能是什么原因吗

------------------ 原始邮件 ------------------ 发件人: "Candinya/Kratos-Rebirth" @.>; 发送时间: 2021年10月27日(星期三) 凌晨0:34 @.>; @.**@.>; 主题: Re: [Candinya/Kratos-Rebirth] Bug 回报:添加github page链接后,部署后无法加载背景图片 (Issue #91)

您可以尝试添加 root 参数为您的 project 名(如 /Javelin.github.io/ )。 详情可以参见 Hexo 文档 - 网址

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Candinya commented 2 years ago

我知道了,主题设置的图片这里也需要调整,可以调整为 /Javelin.github.io/images/banner.webp/Javelin.github.io/images/bg.webp 试一试 image

Zheng-Suijian commented 2 years ago

我知道了,主题设置的图片这里也需要调整,可以调整为 /Javelin.github.io/images/banner.webp/Javelin.github.io/images/bg.webp 试一试 image

非常感谢