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

Avatar 图片不显示 #45

Open
ze-hao opened this issue Jan 8, 2017 · 5 comments
Open

Avatar 图片不显示 #45

ze-hao opened this issue Jan 8, 2017 · 5 comments

Comments

@ze-hao
Copy link

ze-hao commented Jan 8, 2017

Avatar 图片不显示

网页源码为
<img src="//img/avatar.jpg">
经查为 theme 中 layout 文件夹下 page.ejs 文件第176行
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
<%= config['root'] %> 部分多添加了一个 /
请告知我找的是否为问题所在,毕竟所知有限,谢谢。

@terencehyz
Copy link

有一样的问题。img src=""自动添加了一个/

@wanghaiqian
Copy link

检查_config.yml中的root:值是否为hexo初始化的文件夹,例如我在blog文件夹中进行的初始化
aaa

@terencehyz
Copy link

terencehyz commented Feb 6, 2017

@wanghaiqian 我的_config.yml中的root部分为root: /,应该是 @ze-hao 说的那个问题

@YenYuHsuan
Copy link

@wanghaiqian 我也是跟 @terencehyz 的方法一樣解決此問題喔

@GeneralLi95
Copy link

你也可以把image前面的/ 去掉

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

5 participants