Skip to content

Instantly share code, notes, and snippets.

@brianzelip
Created December 25, 2020 12:35
Show Gist options
  • Select an option

  • Save brianzelip/754b3a5de5923b126b7626099aab0b6d to your computer and use it in GitHub Desktop.

Select an option

Save brianzelip/754b3a5de5923b126b7626099aab0b6d to your computer and use it in GitHub Desktop.
Snippet on favicon approach as five icons and one json file

Modern favicon html and json

By Andrey Sitnik

<link rel="icon" href="/favicon.ico"><!-- 32×32 -->
<link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any">
<link rel="apple-touch-icon" href="/apple.png"><!-- 180×180 -->
<link rel="manifest" href="/manifest.webmanifest">
// manifest.webmanifest
{
  "icons": [
    { "src": "/192.png", "type": "image/png", "sizes": "192x192" },
    { "src": "/512.png", "type": "image/png", "sizes": "512x512" }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment