gpt4 book ai didi

image - Github 页面 jekyll 图像未加载

转载 作者:行者123 更新时间:2023-12-04 09:08:01 27 4
gpt4 key购买 nike

我正在尝试让我的个人博客在 github 页面上启动并运行,但由于某种原因,我无法在 Github 上显示任何图片,即使它在本地工作。
网站:https://ryanstull.github.io/
代码:https://github.com/ryanstull/ryanstull.github.io
我尝试了其他类似问题的建议,例如仔细检查大小写并将图像从 Assets 文件夹中移到自己的文件夹中,但这些似乎都没有做任何事情。
当我访问我期望图片所在的网址时,https://ryanstull.github.io/images/posts/classhierarchy.png例如。我只是收到此错误消息,关于包含错误的图像,即使它在本地工作。
enter image description here
任何建议将不胜感激。

最佳答案

所以事实证明问题是 github pages 和 git LFS 不能一起工作,我用 git LFS 存储我的图片。
https://zhouchenzc0824.github.io/2017/05/GitHub-pages-incompatibility-with-Git-LFS/
我能够按照此评论的建议使用指向 LFS 二进制文件的硬编码链接来修复它 https://github.com/git-lfs/git-lfs/issues/1342#issuecomment-334317440
例如,我在问题中发布的图片所使用的链接是https://media.githubusercontent.com/media/ryanstull/ryanstull.github.io/master/images/posts/classhierarchy.png?raw=true

关于image - Github 页面 jekyll 图像未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63409943/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com