Permalink
Browse files

Add icon for mobile

  • Loading branch information...
1 parent 7cac377 commit df6faacb6ef7ae966a3cb08f7f7a00739be69a58 @ai committed Aug 30, 2012
Showing with 10 additions and 4 deletions.
  1. +10 −3 Rakefile
  2. BIN layout/apple-touch-icon.png
  3. +0 −1 layout/layout.html.slim
View
@@ -211,7 +211,9 @@ task :build do
end
end
- FileUtils.cp LAYOUT.join('favicon.ico'), PUBLIC.join('favicon.ico')
+ %w( favicon.ico apple-touch-icon.png ).each do |file|
+ FileUtils.cp LAYOUT.join(file), PUBLIC.join(file)
+ end
print "\n"
end
@@ -235,6 +237,10 @@ task :server do
send_file LAYOUT.join('favicon.ico')
end
+ get '/apple-touch-icon.png' do
+ send_file LAYOUT.join('apple-touch-icon.png')
+ end
+
def build_page(page, locale_code)
R18n.clear_cache!
path = LAYOUT.join("#{page}.html.slim")
@@ -250,9 +256,10 @@ desc 'Prepare commit to GitHub Pages'
task :deploy => :build do
sh 'git checkout gh-pages && ' +
'git rm *.ico && ' +
+ 'git rm *.png && ' +
'git rm *.html && ' +
- 'cp public/*.html ./ && ' +
- 'cp public/*.ico ./ && ' +
+ 'cp public/* ./ && ' +
'git add *.html &&' +
+ 'git add *.png &&' +
'git add *.ico'
end
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -3,7 +3,6 @@ html lang=r18n.locale.code
head
meta charset="UTF-8"
title= t.title
- link href="/favicon.ico" rel="shortcut icon"
- if r18n.locale.code == 'en'
script= assets['language-redirect.js']
meta name="description" content=t.description

0 comments on commit df6faac

Please sign in to comment.