提供多种类型的 Favicon 设置
你当前使用的版本
2.0.2
描述一下此特性
期望提供多种类型的 Favicon 设置,包括针对不同设备,显示大小,Console 端等。
来源:
- https://github.com/halo-dev/console/pull/788#issuecomment-1360677436
- https://github.com/halo-dev/halo/pull/2582#issuecomment-1280464613
附加信息
No response
/kind feature /area core /area console
/milestone 2.2.x
/good-first-issue
@ruibaby: This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.
In response to this:
/good-first-issue
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.
/assign @L-fw
@wan92hen: GitHub didn't allow me to assign the following users: L-fw.
Note that only halo-dev members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide
In response to this:
/assign @L-fw
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.
/assign
这个功能感觉不需要再提供设置项了让用户配置了,只需要基于之前已有的 Favicon 设置,如果用户设置了图片则根据那个图片生成几种标准尺寸的缩略图作为 Favicon 然后自动填充到模板页的 head 即可:
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
参考:
- https://favicon.io/favicon-generator/
- https://en.wikipedia.org/wiki/Favicon
好的