Permalink
Browse files

feat(icon): applefavicon option (#76)

  • Loading branch information...
philippe-effinet authored and pi0 committed Jul 20, 2017
1 parent 6543596 commit 280b416a650d8c718fd1973ae0a0a7eb9d10d183
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/meta/index.js
@@ -45,14 +45,15 @@ module.exports = function nuxtMeta (_options) {
// Favicon
if (options.favicon === true) {
options.favicon = options.icons && options.icons.length > 0 && options.icons[0].src
options.applefavicon = options.icons && options.icons.length > 0 && options.icons[3].src
}
if (options.favicon) {
if (!find(this.options.head.link, 'rel', 'shortcut icon')) {
this.options.head.link.push({ rel: 'shortcut icon', href: options.favicon })
}
if (!find(this.options.head.link, 'rel', 'apple-touch-icon')) {
this.options.head.link.push({ rel: 'apple-touch-icon', href: options.favicon })
this.options.head.link.push({ rel: 'apple-touch-icon', href: options.applefavicon })
}
}

0 comments on commit 280b416

Please sign in to comment.