Created
February 18, 2018 03:24
-
-
Save lomefin/5a8ca2cdcd0d91c72712e3fcfdda3cad to your computer and use it in GitHub Desktop.
Favicon slim partial for Rails using favicomatic.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= favicon_link_tag 'favicon/favicon.ico' | |
- [57,72,60,76].each do |size| | |
= favicon_link_tag "favicon/apple-touch-icon-#{size}x#{size}.png", rel: 'apple-touch-icon', type: 'image/png', sizes: "#{size}x#{size}" | |
= favicon_link_tag "favicon/apple-touch-icon-#{size * 2}x#{size * 2}.png", rel: 'apple-touch-icon', type: 'image/png', sizes: "#{size * 2}x#{size * 2}" | |
- [16,32,96,196].each do |size| | |
= favicon_link_tag "favicon/favicon-#{size}x#{size}.png", type: 'image/png', sizes: "#{size}x#{size}" | |
= favicon_link_tag "favicon/favicon-128.png", type: 'image/png', sizes: "128x128" | |
meta name="msapplication-TileColor" content="#008549" | |
- [70,150,310].each do |size| | |
meta name="= "msapplication-square#{size}x#{size}logo"" content="= asset_path("favicon/mstile-#{size}x#{size}.png")" | |
meta name="msapplication-wide310x150logo" content=asset_path("favicon/mstile-310x150.png") | |
meta name="msapplication-TileImage" content=asset_path("favicon/mstile-144x144.png") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment