iconAn icon in the context of the indieweb typically refers to a home page icon for an indieweb site. Nearly all modern browsers support a simple rel=icon link, a few legacy and other browsers may require rel="shortcut icon", or a /favicon.ico (at the root). A site’s icon is often the same as the site owner’s profile photo. MarkupThe <link rel="icon" href="logo.jpg" /> iOS home screenTo create an explicit icon (rather than the default page thumbnail) for a shortcut that an iOS user can save to their homescreen, you need a line of code like this in your head element: <link rel="apple-touch-icon-precomposed" href="logo.jpg" /> The Why Because in iOS6 and earlier, Safari/iOS adds an ugly white drop shadow over the top of your icon when you use Android home screenChrome and Firefox for AndroidBoth Chrome and Firefox for Android will work with the standard Chrome M31 Beta for AndroidTo enable one-step adding of your icon to the home screen in Chrome M31 Beta (or later) for Android, you need to also add this line of code to your head element (in addition to the standard <meta name="mobile-web-app-capable" content="yes" /> The This meta tag has the added side effect of making the browser bar disappear and the window open full screen. The window also runs as its own App in the recent apps menu instead of as a tab in chrome. IndieWeb ExamplesIn rough order of implementation of an icon showing/representing themselves on their home page on at least iOS and Android: Jeremy Keith
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" /> <link rel="shortcut icon apple-touch-icon" type="image/png" href="/icon.png" /> He also has an icon in a "well known" location that iOS looks for it:
And that's how iOS finds his icon, not via the Shane Becker
<!-- Fav and touch icons --> <link rel="shortcut icon" href="http://assets.veganstraightedge.com/images/favicon.ico" /> <link rel="apple-touch-icon" sizes="57x57" href="http://assets.veganstraightedge.com/images/apple-touch-icon-precomposed.png" /> <link rel="apple-touch-icon" sizes="60x60" href="http://assets.veganstraightedge.com/images/apple-touch-icon-60x60-precomposed.png" /> <link rel="apple-touch-icon" sizes="72x72" href="http://assets.veganstraightedge.com/images/apple-touch-icon-72x72-precomposed.png" /> <link rel="apple-touch-icon" sizes="76x76" href="http://assets.veganstraightedge.com/images/apple-touch-icon-76x76-precomposed.png" /> <link rel="apple-touch-icon" sizes="114x114" href="http://assets.veganstraightedge.com/images/apple-touch-icon-114x114-precomposed.png" /> <link rel="apple-touch-icon" sizes="120x120" href="http://assets.veganstraightedge.com/images/apple-touch-icon-120x120-precomposed.png" /> <link rel="apple-touch-icon" sizes="144x144" href="http://assets.veganstraightedge.com/images/apple-touch-icon-144x144-precomposed.png" /> <link rel="apple-touch-icon" sizes="152x152" href="http://assets.veganstraightedge.com/images/apple-touch-icon-152x152-precomposed.png" /> <link rel="apple-touch-icon" sizes="180x180" href="http://assets.veganstraightedge.com/images/apple-touch-icon-180x180-precomposed.png" /> <link rel="icon" sizes="192x192" href="http://assets.veganstraightedge.com/images/touch-icon-192x192.png" /> Aaron Parecki
<link rel="shortcut icon" type="image/ico" href="/favicon.ico"> <link rel="shortcut icon" type="image/jpg" href="/images/aaronpk-256.jpg"> <link rel="apple-touch-icon-precomposed" href="/images/aaronpk-256.jpg"> He also has a redirect from a "well known" location that iOS looks for it:
Which redirects to:
Amber Case
<link rel="shortcut icon" type="image/ico" href="/favicon.ico"> <link rel="shortcut icon" type="image/jpg" href="/images/caseorganic.jpg"> <link rel="apple-touch-icon-precomposed" href="/images/caseorganic.jpg"> Barnaby Walters
<link rel="shortcut icon" href="/photo.jpg" /> <link rel="apple-touch-icon-precomposed" href="/photo.jpg" /> Tantek
<link rel="icon" href="logo.jpg" /> <link rel="apple-touch-icon-precomposed" href="logo.jpg" /> <meta name="mobile-web-app-capable" content="yes" /> Kartik Prabhu
<link rel=" shortcut icon" href="/static/images/avatar.jpg"/> <link rel="apple-touch-icon" sizes="150x150" href="/static/images/avatar.jpg" /> <meta name="mobile-web-app-capable" content="yes" /> Kevin Marks
<link rel="shortcut icon" href="km.jpg" /> <meta name="mobile-web-app-capable" content="yes" /> <link rel="apple-touch-icon" href="km.jpg" /> Ben Werdmuller / idno
<link rel="icon" type="image/png" href="http://werd.io/file/5292511fbed7de0606dd79ae"> <link rel="apple-touch-icon-precomposed" href="http://werd.io/file/5292511fbed7de0606dd79ae"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> Because idno is a multi-user software platform, this is achieved by giving each page on an idno site an effective "owner". The icon changes depending on the owner's avatar. Brennan Novak
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="mobile-web-app-capable" content="yes" /> <link rel="shortcut icon" href="https://brennannovak.com/uploads/sites/1/Me_Train_Tracks_200.jpg" /> <link rel="apple-touch-icon-precomposed" href="https://brennannovak.com/uploads/sites/1/Me_Train_Tracks_200.jpg" /> The longer file path is due to the JPG being uploaded via Social-igniter platform- I am easily able to update my avatar via web interface. Matthias Pfefferle
<link rel="apple-touch-icon" href="http://www.gravatar.com/avatar/dde87835cca4069dfae355ff6f29de6d?s=57" /> <link rel="apple-touch-icon" sizes="72x72" href="http://www.gravatar.com/avatar/dde87835cca4069dfae355ff6f29de6d?s=72" /> <link rel="apple-touch-icon" sizes="114x114" href="http://www.gravatar.com/avatar/dde87835cca4069dfae355ff6f29de6d?s=114" /> <link rel="icon favicon shortcut" sizes="16x16" href="http://www.gravatar.com/avatar/dde87835cca4069dfae355ff6f29de6d?s=16" /> Chloe Weil
http://chloeweil.com/favicon.ico http://chloeweil.com/apple-touch-icon-precomposed.png Ashton McAllan
<link rel="shortcut icon" href="http://acegiak.net/wp-content/uploads/gwpf_icon/favicon.png" /> <link rel="apple-touch-icon" href="http://acegiak.net/wp-content/uploads/gwpf_icon/favicon.png" /> FAQShould you use a photo of your faceQ: Should you use a photo of your face as your icon? A1: Yes. It's a good idea to use a photo of your face as your icon. People respond well to icons of faces. More:
On the other hand, things you should NOT use as your icon:
A2: No. Here are some reasons that IndieWeb community members have chosen to not use a photo of their face as their icon — you want to consider these reasons for your own icon as well.
Why all the different sizesQ: Why provide different sized icons? Or not? A: Normally people actually design different icons for different resolutions, because often auto-sizing doesn't do a good job of resampling for icons. This is particularly important for logo/line art that uses PNG files. However if you're just using a JPG (which you should be for an icon of your face, see above), a single file (and size) that the device resamples to whatever size it needs is just fine. A single 128x128 image seems to work fine in practice. Should I just use well known URLsQ: Both favicon.ico and the various apple-touch-icon(-precomposed).png files can be served via well-known URLs (i.e. put a file in the right place and it’ll be found), so should you do so since this requires less markup? A: No. Depending on "well known URLs" is bad for several reasons:
Browser SupportHow to add a site to your home screen on various mobile browsers: iOS Mobile SafariUsing Mobile Safari:
iOS home screen with indieweb people icons on it: Chrome for AndroidUsing Chrome for Android, you can
Using Chrome M31 Beta on Android, if the site has the Google proprietary meta name
to directly add an icon to the home screen in Android devices instead of first to a bookmarks collection, per [6]. After successfully adding a home page shortcut icon from an indieweb site, here's what it might look like (screenshot from an Android Nexus 7 running kitkat) Firefox for AndroidUsing Firefox for Android, you can
You should now see an icon on the home screen from the site you saved! Android browser comparisonsHere is a screenshot of Android 4.3 running on an HTC ONE device. Each site was added twice. Using Firefox 25.0.1 on left, Chrome 31 on the right (in each pair)
On Compared to icons from Firefox for Android 30.0
Firefox OSUsing FirefoxOS, when you make a bookmark by pressing the Star button bottom right, it offers to add the site to the home screen.
When you do, it puts the icon within a circle, with the corners not quite touching the circumference: Nokia C5-00The Nokia C5 homescreen has a row which can be filled with icons+names of contacts. From the homescreen, use the direction buttons to navigate to the row at the top of the homescreen containing an “Add” button. Select the button, then select a contact to add. When selected, the icon expands to show full name, phone number and recent interactions with this person e.g. calls+texts, as well as action buttons for calling, texting and viewing the RSS feed for this person. Silo SupportGoogle+Google plus displays favicons for linked-to sites on the profile page. This is done by a generally usable webservice that renders them as 16x16 PNGs (decoding, rendering, resizing and caching them on google's servers) eg https://s2.googleusercontent.com/s2/favicons?domain=twitter.com&alt=p shows
TumblrUsing browser UA sniffing (e.g. for iOS), Tumblr automatically (perhaps with default/typical templates) provides the markup linking the avatar/icon you set in the setting page (click on your Tumblr name in the left column, then click (Change avatar) and pick a photo icon of yourself), to a shortcut icon both for iOS and bookmarking in Android. Examples of Tumblr hosted personal sites that do this:
Code that Tumblr uses: (e.g. hannahdonovan.com when retrieved with an iOS UA) <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="shortcut icon" href="http://31.media.tumblr.com/avatar_b2e548e2cec8_128.png"> <link rel="apple-touch-icon-precomposed" href="http://31.media.tumblr.com/avatar_b2e548e2cec8_128.png"> Tumblr shortcut icon problems
Both of these are reason enough to do your own shortcut icon markup / handling on your own site rather than depend on Tumblrs semi-awkward shortcut icon support. Legacy Well Known PathsSome browsers on some platforms will look for icons in hard-coded locations on a website. faviconInternet Explorer versions 10 and before look for:
See 2013-01-16 article Understand the Favicon for more details. apple-touch-iconiOS looks at the root of your server for:
AdvancedThe following describe advanced or experimental techniques that are either non-trivial, potentially fragile, or both. iOS site as appTo have iOS launch your home screen icon as a separate "app" (rather than a tab in Mobile Safari), you need to also add this tag in your head element: <meta name="apple-mobile-web-app-capable" content="yes"> The Problems:
See Also
|


























