-
-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
difficulty/hardHard to deal with / implement againstHard to deal with / implement againstenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Currently, users must replace these things one by one, and use their own tools to create dedicated favicons, pwa icons, different icons etc, why can we have one single plugin to do this all?
Apparently me and @LittleSound will choose to use https://realfavicongenerator.net/ for most of the time, it still requires us to manually operate, click, navigate, configure, fill in every pieces of fields.
['meta', {
name: 'theme-color',
content: '#ffffff',
}],
[
'link',
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
sizes: '180x180',
},
],
['link', {
rel: 'icon',
href: '/logo.svg',
type: 'image/svg+xml',
}],
[
'link',
{
rel: 'alternate icon',
href: '/favicon.ico',
type: 'image/png',
sizes: '16x16',
},
],
[
'link',
{
rel: 'mask-icon',
href: '/safari-pinned-tab.svg',
color: '#927baf',
},
],
['link', {
rel: 'manifest',
href: '/site.webmanifest',
}],
['meta', {
name: 'msapplication-TileColor',
content: '#603cba',
}],
],
PS: perhaps related to vitepress-plugin-meta, but not quite the same, can be integrated into.
Workflow may look like this:
- Find image
- Generate corresponding
favicon.ico
,apple-touch-icon
,mask-icon
,icon
,alternate icon
- Allow users to configure masking color, margins of images, etc.
- Generate dedicated config
site.webmanifest
- Apply theme colors?
- Finish the output.
- Generate head tags
- How to put all of these things all together? transformPageHead? Any viable way?
Metadata
Metadata
Assignees
Labels
difficulty/hardHard to deal with / implement againstHard to deal with / implement againstenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed