Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Add Apple touch icon
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Jun 27, 2015
1 parent 5c5af36 commit 3dedebf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,16 @@ module.exports = generators.Base.extend({
);
},

favicon: function () {
icons: function () {
this.fs.copy(
this.templatePath('favicon.ico'),
this.destinationPath('app/favicon.ico')
);

this.fs.copy(
this.templatePath('apple-touch-icon.png'),
this.destinationPath('app/apple-touch-icon.png')
);
},

robots: function () {
Expand Down
Binary file added app/templates/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<title><%= appname %></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->

<!-- build:css styles/vendor.css -->
<!-- bower:css -->
<!-- endbower -->
Expand Down
1 change: 1 addition & 0 deletions test/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('general', function () {
'.bowerrc',
'Gruntfile.js',
'app/favicon.ico',
'app/apple-touch-icon.png',
'app/index.html',
'app/scripts/main.js',
'app/styles/main.css',
Expand Down

0 comments on commit 3dedebf

Please sign in to comment.