theme-earth icon indicating copy to clipboard operation
theme-earth copied to clipboard

文章详情页 favicon.ico无法显示

Open funtime1 opened this issue 1 year ago • 1 comments

你好,我在后台配置了自定义的favicon.ico: image

但文章详情页读取的路径是https://blog.dwgg.cc:8443/favicon.ico,所以无法正确显示favicon.ico,但首页是可以正常加载的。 image

复现地址: https://blog.dwgg.cc:8443/2024/03/10/1710066214869

funtime1 avatar Apr 20 '24 08:04 funtime1

用的是最新版的主题:1.8.0

funtime1 avatar Apr 20 '24 09:04 funtime1

你在内容页面注入的代码破坏了 html 的结构,导致 favicon 的标签渲染到了 body 标签里面,所以不生效。

image image

建议把这一块代码放在页脚注入。

ruibaby avatar Aug 22 '24 03:08 ruibaby

/kind support

ruibaby avatar Aug 22 '24 03:08 ruibaby

/close

ruibaby avatar Aug 22 '24 06:08 ruibaby

@ruibaby: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

f2c-ci-robot[bot] avatar Aug 22 '24 06:08 f2c-ci-robot[bot]