All The Favicons
The favicon sitation is getting out of hand. 25+ variants? browserconfig.xml? manifest.json?
This gem handles the Rails stuff, all you need to do is generate the images.
Usage
Add all-the-favicons to your Gemfile:
gem "all-the-favicons"Generate all your icons using something like the
Real Favicon Generator, and put
the files in app/assets/favicons.
Add the helper to your layout somewhere in the <head> tag:
<%= all_the_favicons %>Configuration
You can configure colors by adding an initializer (ie
app/config/initializers/favicons.rb).
AllTheFavicons.name = "MyApp" # For the Android Chrome manifest
AllTheFavicons.short_name = "MyApp"
AllTheFavicons.ms_tile_color = "#2d89ef"
AllTheFavicons.pinned_tab_color = "#000000"
AllTheFavicons.background_color = "#ffffff"
AllTheFavicons.theme_color = "#ffffff"Contributing
Bug reports, feature requests, and pull requests are welcome. Read CONTRIBUTING.md first. Report security vulnerabilities privately as described in SECURITY.md.
CONTRIBUTING.md also covers how to get set up and how commits are formatted. This project ships with a code of conduct.
License
Released under the MIT License.