Skip to content

Instantly share code, notes, and snippets.

@alfo
Created July 21, 2014 18:03
Show Gist options
  • Save alfo/eac88db957b15f0aa773 to your computer and use it in GitHub Desktop.
Save alfo/eac88db957b15f0aa773 to your computer and use it in GitHub Desktop.
A quick way to add link tags for all the different sizes of Apple Touch Icon
<% [57, 60, 72, 76, 114, 144, 120, 152].each do |size| %>
<link rel="apple-touch-icon" sizes="<%= size %>x<%= size %>" href="<%= image_path("icons/apple-touch-icon-#{size}x#{size}.png") %>">
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment