<% cache 'header' do %>
  <head>
    <title>Feedbunch</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <%= favicon_link_tag '/favicon.ico' %>
<% end %>
    <%= stylesheet_link_tag    'application', :media => 'all' %>

    <link rel="icon" sizes="192x192" href="<%= image_path 'feed192x192.png' %>">
    <link rel="manifest" href="<%= page_path 'manifest.json' %>">
    <meta name="theme-color" content="#FFA500">
    <%= csrf_meta_tags %>
  </head>

<% cache 'header' do %>
  <head>
    <title>Feedbunch</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
<% end %>
    <%= stylesheet_link_tag    'application', :media => 'all' %>

    <link rel="icon" sizes="192x192" href="<%= image_path 'feed192x192.png' %>">
    <link rel="manifest" href="<%= page_path 'manifest.json' %>">
    <meta name="theme-color" content="#FFA500">
    <%= csrf_meta_tags %>
    <%# favicon must be the last element with rel="icon", otherwise favico.js won't work %>
    <%= favicon_link_tag '/favicon.ico' %>
  </head>

Fix displaying the number of unread entries in the favicon for Chrome.
Fix displaying the number of unread entries in the favicon for Chrome.

Currently favico.js has a bug which only updates the last element with rel="icon" if there are several in the page head. This maeans that the favicon must be last in the head, particularly it must appear after the 192x192 icon (used in the mobile manifest).

Related to this favico.js bug, might become unnecessary when it is fixed:

  https://github.com/ejci/favico.js/issues/85
