LoveIt
LoveIt copied to clipboard
[BUG] Favicon Doesn't Show Up
Describe the bug 描述你遇到的错误
Favicon can be seen at homepage, but not working anywhere else
Screenshots 屏幕截图
Build Environment 构建环境
Windows 11
Additional Information 补充信息
my repo: https://gitlab.com/nataliepjlin/newsite , and the giraffe.png
is save at static/giraffe.png
[params.app]
# optional site title override for the app when added to an iOS home screen or Android launcher
# 当添加到 iOS 主屏幕或者 Android 启动器时的标题, 覆盖默认标题
title = "My cool site"
# whether to omit favicon resource links
# 是否隐藏网站图标资源链接
noFavicon = false
# modern SVG favicon to use in place of older style .png and .ico files
# 更现代的 SVG 网站图标, 可替代旧的 .png 和 .ico 文件
svgFavicon = "giraffe.png"
# Android browser theme color
# Android 浏览器主题色
themeColor = "#ffffff"
# Safari mask icon color
# Safari 图标颜色
iconColor = "#5bbad5"
# Windows v8-11 tile color
# Windows v8-11 磁贴颜色
tileColor = "#da532c"
@nataliepjlin you could try to set up noFavicon as true After that the functionality should work correctly. Also I can recommend to use a site which specified in the documentation The site helps to create a necessary set of files and icons.
also ran into this problem. And lline's solution (set noFvicon as true) not work for me. But I found that this problem only happens when I'm using Chrome, favicon show correctly using safari.
@nataliepjlin
I found Solution
https://stackoverflow.com/questions/16375592/favicon-not-showing-up-in-google-chrome
Clear your cache. http://support.google.com/chrome/bin/answer.py?hl=en&answer=95582 And test another browser.
Some where able to get an updated favicon by adding an URL parameter: ?v=1 after the link href which changes the resource link and therefore loads the favicon without cache (thanks @Stanislav).
<link rel="icon" type="image/x-icon" href="favicon.ico?v=2" />
I have the same issue but in local it no showing. I added a png favicon under assets directory but not sure if with that is enought or if I should specify the path of the favicon in another place.