Github 页面 jekyll 图片未加载
Github pages jekyll images not loading
我正在尝试在 github 页面上建立我的个人博客和 运行,但由于某种原因,我无法在 Github 上显示任何图片,即使它在本地工作。
网站:https://ryanstull.github.io/
代码:https://github.com/ryanstull/ryanstull.github.io
我尝试了针对其他类似问题的建议,例如仔细检查大小写并将图像从 assets 文件夹中移到它们自己的文件夹中,但这些似乎都没有做任何事情。
当我去 url 我期待图片的地方时,例如 https://ryanstull.github.io/images/posts/classhierarchy.png。我只是收到此错误消息,关于包含错误的图像,即使它在本地工作也是如此。
如有任何建议,我们将不胜感激。
原来问题是 github 页面和 git LFS 不能一起工作,我用 git LFS 存储我的照片。
https://zhouchenzc0824.github.io/2017/05/GitHub-pages-incompatibility-with-Git-LFS/
我能够按照此评论 https://github.com/git-lfs/git-lfs/issues/1342#issuecomment-334317440
的建议对 LFS 的二进制文件使用 hard-coded link 来修复它
例如,我在问题中发布的图片所使用的 link 是 https://media.githubusercontent.com/media/ryanstull/ryanstull.github.io/master/images/posts/classhierarchy.png?raw=true
我正在尝试在 github 页面上建立我的个人博客和 运行,但由于某种原因,我无法在 Github 上显示任何图片,即使它在本地工作。
网站:https://ryanstull.github.io/
代码:https://github.com/ryanstull/ryanstull.github.io
我尝试了针对其他类似问题的建议,例如仔细检查大小写并将图像从 assets 文件夹中移到它们自己的文件夹中,但这些似乎都没有做任何事情。
当我去 url 我期待图片的地方时,例如 https://ryanstull.github.io/images/posts/classhierarchy.png。我只是收到此错误消息,关于包含错误的图像,即使它在本地工作也是如此。
如有任何建议,我们将不胜感激。
原来问题是 github 页面和 git LFS 不能一起工作,我用 git LFS 存储我的照片。
https://zhouchenzc0824.github.io/2017/05/GitHub-pages-incompatibility-with-Git-LFS/
我能够按照此评论 https://github.com/git-lfs/git-lfs/issues/1342#issuecomment-334317440
的建议对 LFS 的二进制文件使用 hard-coded link 来修复它例如,我在问题中发布的图片所使用的 link 是 https://media.githubusercontent.com/media/ryanstull/ryanstull.github.io/master/images/posts/classhierarchy.png?raw=true