Jekyll不显示Github存储库中的图像

Jekyll不显示Github存储库中的图像,jekyll,github-pages,Jekyll,Github Pages,我刚刚用minima主题创建了一个Jekyll博客,并希望嵌入一些图像 如果我执行以下操作,我可以从Github页面嵌入图像: ![杰基尔标志](http://memofil.github.io/assets/images/categories/jekyll-logo.png) 但是,如果我尝试嵌入Github存储库中的图像,最终会出现断开的链接,并且不会显示图像: ![截图](https://github.com/jekyll/minima/blob/master/screenshot.png

我刚刚用
minima
主题创建了一个Jekyll博客,并希望嵌入一些图像

如果我执行以下操作,我可以从Github页面嵌入图像:

![杰基尔标志](http://memofil.github.io/assets/images/categories/jekyll-logo.png)

但是,如果我尝试嵌入Github存储库中的图像,最终会出现断开的链接,并且不会显示图像:

![截图](https://github.com/jekyll/minima/blob/master/screenshot.png)

为什么会这样


我使用命令sudo bundle exec jekyll serve来测试站点。

如果使用
raw
链接,似乎只能从Github存储库添加图像

这样做

![Screenshot](https://raw.githubusercontent.com/jekyll/minima/master/screenshot.png)
而不是这个

![Screenshot](https://github.com/jekyll/minima/blob/master/screenshot.png)

解决了我的问题。

如果图像存储在您的资产/文件夹中,您也可以使用相对路径过滤器。