next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.41k stars 426 forks source link

Why is the user avatar not displayed #367

Closed lxx0325 closed 2 years ago

lxx0325 commented 3 years ago

Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

the avatar will show 按照文档配置图像后图片不显示,已确认url路径和实际配置的路径相等,图片已存在

Actual behavior

image

Steps to reproduce the behavior

hexo s

Environment Information

Node.js and NPM Information

v12.22.5
6.14.14

Package dependencies Information

+-- hexo@5.4.0
+-- hexo-abbrlink@2.2.1
+-- hexo-deployer-git@3.0.0
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-category@1.0.0
+-- hexo-generator-index@2.0.0
+-- hexo-generator-tag@1.0.0
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-marked@4.1.0
+-- hexo-renderer-pug@2.0.0
+-- hexo-renderer-stylus@2.0.1
+-- hexo-server@2.0.0
+-- hexo-theme-landscape@0.0.3
`-- hexo-theme-next@8.7.1

NexT Configuration

# Sidebar Avatar
avatar:
  # Replace the default image and set the url here.
  url: /images/avatar.jpg
  # If true, the avatar will be dispalyed in circle.
  rounded: true
  # If true, the avatar will be rotated with the cursor.
  rotated: true
  opacity: 1
welcome[bot] commented 3 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

ljcbaby commented 3 years ago

请问你的文件是放在哪个位置?

stevenjoezhang commented 3 years ago

F12 打开控制台,看看有没有报错

lxx0325 commented 3 years ago

F12打开读取,看看有没有报错

控制台是正常的,都是200的返回

lxx0325 commented 3 years ago

请问你的文件是放在哪个位置?

放在了主题下的sources/images

ljcbaby commented 3 years ago

hexo clean&&hexo g试过吗?

lxx0325 commented 2 years ago

hexo clean&&hexo g试过吗?

试过了,问题还是存在

njzjz commented 2 years ago

请提供这个网页的源代码

lxx0325 commented 2 years ago

请提供这个网页的源代码

https://github.com/lxx0325/lxx0325.gihub.io.git

stevenjoezhang commented 2 years ago

你还改了别的设置吗?CSS 的链接明显不对

https://github.com/lxx0325/lxx0325.gihub.io/blob/3cf782f92b6146a87787934c13d4a9bc42196711/index.html#L15

avatar 也并没有启用

https://github.com/lxx0325/lxx0325.gihub.io/blob/3cf782f92b6146a87787934c13d4a9bc42196711/index.html#L113-L116

你能把 Hexo 的 _config.yml 贴上来吗?我确认一下

njzjz commented 2 years ago

我想提醒一下,gihub的正确拼写是github……

lxx0325 commented 2 years ago

我想提醒一下,gihub的正确拼写是github……

好的,打字打快了,我的错

lxx0325 commented 2 years ago

你还改了别的设置吗?CSS 的链接明显不对

https://github.com/lxx0325/lxx0325.gihub.io/blob/3cf782f92b6146a87787934c13d4a9bc42196711/index.html#L15

avatar 也并没有启用

https://github.com/lxx0325/lxx0325.gihub.io/blob/3cf782f92b6146a87787934c13d4a9bc42196711/index.html#L113-L116

你能把 Hexo 的 _config.yml 贴上来吗?我确认一下

image 我知道问题出在哪了,谢谢大哥

stevenjoezhang commented 2 years ago

问题解决了就好~

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.