Skip to content

Commit 518e19b

Browse files
authored
docs: updated favicon to support dark mode
* docs: updated favicon to support dark mode * safari support for ico file
1 parent 180a1af commit 518e19b

File tree

4 files changed

+100
-2
lines changed

4 files changed

+100
-2
lines changed

nuxt.config.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export default {
3232
{ charset: 'utf-8' },
3333
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
3434
],
35-
link: [{ rel: 'icon', type: 'image/x-icon', href: '/img/favicon.ico' }],
35+
link: [
36+
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico', sizes: "any" },
37+
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
38+
],
3639
script: [{ src: '/js/removeTrailingSlash.js' }],
3740
},
3841
/*
@@ -62,7 +65,12 @@ export default {
6265
/*
6366
** Nuxt.js dev-modules
6467
*/
65-
buildModules: ['@nuxtjs/tailwindcss', '@nuxtjs/fontawesome', '@nuxt/image', 'nuxt-webpack-optimisations'],
68+
buildModules: [
69+
'@nuxtjs/tailwindcss',
70+
'@nuxtjs/fontawesome',
71+
'@nuxt/image',
72+
'nuxt-webpack-optimisations',
73+
],
6674
/*
6775
** Nuxt.js modules
6876
*/
File renamed without changes.

static/favicon.svg

Lines changed: 45 additions & 0 deletions
Loading

static/img/favicon.svg

Lines changed: 45 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)