gpt4 book ai didi

html - Jekyll 不显示 GIF

转载 作者:行者123 更新时间:2023-12-01 22:02:15 25 4
gpt4 key购买 nike

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

我试过标准

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

还有:

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

但每次我只是看到蓝色的小问号图标说找不到它?我在网上可以找到的所有东西似乎都表明它应该“正常工作”。

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

Page in question

最佳答案

您正在使用“相对于当前路径” url:assets/Animation/run.gif

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

协议(protocol)://domain.tld/cat1/cat2/year/month/day/assets/Animation/run.gif

这是错误的。

您必须使用“相对于根目录” url 来调用您的 Assets :

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

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

关于html - Jekyll 不显示 GIF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53282730/

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