为什么 Jekyll 不加载图像

Why does Jekyll not load images

我是 jekyll 的新手,我正在尝试为 github 设置一个用户站点。我使用的是 this 模板,除了 _config.yml 的小细节外,该模板保持不变。

我编辑了 /index.html 前页以使用新图像代替默认 abstract-1.jpg。但是,在为网站提供服务时,图像不会加载。我可以使用模板附带的任何图像,但不能使用我下载的图像。而且它无法加载外部图像。

有什么想法吗?

Owner/Author Information

Change your name, and avatar photo (200x200 pixels or larger), email, and social networking URLs. If you want to link to an external image on Gravatar or something similar you’ll need to edit the path in head.html since it assumes it is located in /images.

试试看?资料来源:https://mmistakes.github.io/hpstr-jekyll-theme/

我猜你说的是 Github 项目存储库,用于 Github 页面。

只需将 _config.yml 中的 baseurl 变量设置为 /repositoryName