CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
4.89k stars 1.6k forks source link

site-avatar无法正常显示 #977

Closed pplmx closed 6 months ago

pplmx commented 6 months ago

What happened?

除了首页, 其他页面全部无法显示

Hugo version

0.123.7

Theme version

3.24.1

What browsers are you seeing the problem on?

Chrome

More information about the browser

Chrome 122.0.6261.112, Win11

Relevant log output

Here is my config:

# Pages placed under these sections will be shown on homepage and archive page.
mainSections = ["posts"]
# Output page's full content in RSS.
rssFullContent = true
favicon = "images/favicon.png"

[dateFormat]
published = "Jan 02, 2006"
lastUpdated = "Jan 02, 2006 15:04 MST"

[sidebar]
emoji = "🍥"
subtitle = "To infinity and beyond."

[sidebar.avatar]
enabled = true
local = false
src = "images/favicon.png"

Link to Minimal Reproducible Example

https://yoooo.fun

CaiJimmy commented 6 months ago

参考 https://github.com/CaiJimmy/hugo-theme-stack-starter/ 把头像放到 assets 文件夹下,然后 local = true

或者改成 src = "/images/favicon.png"

pplmx commented 6 months ago

@CaiJimmy

谢谢q(≧▽≦q)