Browse Source

Add touch icons for Chrome, iOS and Windows 10

closed-social-glitch-2
Frederic Hemberger 8 years ago
parent
commit
e7cd6da938
6 changed files with 28 additions and 0 deletions
  1. +5
    -0
      app/views/layouts/application.html.haml
  2. BIN
     
  3. BIN
     
  4. +9
    -0
      public/browserconfig.xml
  5. +14
    -0
      public/manifest.json
  6. BIN
     

+ 5
- 0
app/views/layouts/application.html.haml View File

@ -5,6 +5,11 @@
%meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/
%link{:rel => "apple-touch-icon", :sizes => "180x180" :href => "/assets/apple-touch-icon.png"}/
%link{:rel => "manifest", href => "/assets/manifest.json"}/
%meta{:name => "msapplication-config", content => "/assets/browserconfig.xml"}/
%meta{:name => "theme-color", content => "#ffffff"}/
%title
= "#{yield(:page_title)} - " if content_for?(:page_title)
Mastodon

BIN
View File


BIN
View File


+ 9
- 0
public/browserconfig.xml View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/assets/mstile-150x150.png"/>
<TileColor>#2b5797</TileColor>
</tile>
</msapplication>
</browserconfig>

+ 14
- 0
public/manifest.json View File

@ -0,0 +1,14 @@
{
"name": "Mastodon",
"description": "Mastodon is a free, open-source social network server.",
"icons": [
{
"src": "\/assets\/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image\/png"
}
],
"theme_color": "#ffffff",
"display": "standalone",
"start_url": "/#/statuses/home"
}

BIN
View File


Loading…
Cancel
Save