Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署到gitpage问题 #34

Open
MeoWoo6 opened this issue Jul 22, 2019 · 3 comments
Open

部署到gitpage问题 #34

MeoWoo6 opened this issue Jul 22, 2019 · 3 comments

Comments

@MeoWoo6
Copy link

MeoWoo6 commented Jul 22, 2019

本地hugo server查看时,avatar图片有显示,点击进入也有博客页。但部署到gitpage上avatar图片无法显示,点进去显示404。

@mogeko
Copy link

mogeko commented Jul 29, 2019

你的网站的根地址是 https://meowoo6.github.io,你用绝对地址肯定是找不到图片的

config.toml 中 47 行改成这样就可以了

avatar = "images/me/avatar.jpeg"

深度截图_xfdesktop_20190729161151

@MeoWoo6
Copy link
Author

MeoWoo6 commented Jul 31, 2019

我现在的config.toml第47行已经改成了avatar = "images/me/avatar.jpeg" 但是头像图片仍然没有出现。检查元素时,例如博文、目录,都会自动添加meowsblog/路径,图片这个是因为什么呢?

@mogeko
Copy link

mogeko commented Jul 31, 2019

改成 https://meowoo6.github.io/meowsblog/images/me/avatar.jpeg 试试?

因为图片的路径是 https://meowoo6.github.io/meowsblog/images/me/avatar.jpeg ,但 /images/me/avatar.jpeg 表示的路径是 https://meowoo6.github.io/images/me/avatar.jpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants