Jekyll 不显示 GIF

Jekyll is not showing gifs

我正在尝试将 gif 放到我的 jekyll 网站上。

我试过标准版

![yay](assets/Animation/run.gif)

以及:

<figure>
    <IMG SRC="assets/Animation/run.gif">
</figure>

但每次我都只是看到蓝色的小问号图标,说找不到它?我在网上能找到的所有东西似乎都建议它应该 'just work'。

关于我做错了什么有什么想法吗?

Page in question

您正在使用 "relative to current path" url : assets/Animation/run.gif

在包含 url 的页面上,例如 protocol://domain.tld/cat1/cat2/year/month/day/,这将根据当前路径解析:

协议://域.tld/cat1/cat2/year/month/day/assets/Animation/run.gif

这是错误的。

你必须用 "relative to root" urls 来称呼你的资产 :

![yay](/assets/Animation/run.gif)

<img src="{{ site.baseurl }}/assets/Animation/run.gif">