fix: favicon dark mode (#359)
This commit is contained in:
1 parent
0a8ef07345
commit
2c29e41d52
5 files changed
+15
-11
No files matched your search
+8
-1
@@ -2,7 +2,7 @@
|
||||
// https://github.com/vueuse/head
|
||||
// you can use this to manipulate the document head in any components,
|
||||
// they will be rendered correctly in the html results with vite-ssg
|
||||
import { isDark } from '~/composables'
|
||||
import { isDark, preferredDark } from '~/composables'
|
||||
|
||||
useHead({
|
||||
title: 'Vitesse',
|
||||
@@ -13,6 +13,13 @@ useHead({
|
||||
content: computed(() => isDark.value ? '#00aba9' : '#ffffff'),
|
||||
},
|
||||
],
|
||||
link: [
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/svg+xml',
|
||||
href: computed(() => preferredDark.value ? '/favicon-dark.svg' : '/favicon.svg'),
|
||||
},
|
||||
],
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user