使用掩码(我自己的域)重定向 github 页面时 Favicon 不工作
Favicon not working when redirecting github page with mask (my own domain)
晚安,我在 github 页上安装了一个页面:
https://ludicultura.github.io/ludiweb/
如果你打开那个 link 网站图标可以完美运行,但我在 goDaddy 上购买了一个域名,所以我可以重定向该页面,用我的域名屏蔽它:
http://ludicultura.com/
那里的图标不起作用。
(两个link都已经上线了,大家可以去看看。)
我尝试了添加“?”的选项到 "href"
结束
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?">
然后算法将我的图像更改为 png:
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
但是没有任何效果,这是怎么回事?
存储库的来源和记录以及所有更改:
https://github.com/ludicultura/ludiweb
对于 ludicultura.github.io/ludiweb/,将您的网站图标 url 更改为 <link rel="shortcut icon" type="image/x-icon" href="{{ site.baseurl }}/favicon.ico">
.
但是在 ludicultura.com 中构建 ludicultura.github.io/ludiweb/ 并不是一个好的做法。
阅读完this documentation on github pages后,您最好正确设置您的自定义域。
晚安,我在 github 页上安装了一个页面: https://ludicultura.github.io/ludiweb/
如果你打开那个 link 网站图标可以完美运行,但我在 goDaddy 上购买了一个域名,所以我可以重定向该页面,用我的域名屏蔽它: http://ludicultura.com/ 那里的图标不起作用。
(两个link都已经上线了,大家可以去看看。)
我尝试了添加“?”的选项到 "href"
结束 <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?">
然后算法将我的图像更改为 png:
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
但是没有任何效果,这是怎么回事?
存储库的来源和记录以及所有更改: https://github.com/ludicultura/ludiweb
对于 ludicultura.github.io/ludiweb/,将您的网站图标 url 更改为 <link rel="shortcut icon" type="image/x-icon" href="{{ site.baseurl }}/favicon.ico">
.
但是在 ludicultura.com 中构建 ludicultura.github.io/ludiweb/ 并不是一个好的做法。
阅读完this documentation on github pages后,您最好正确设置您的自定义域。