docs: use a single svg icon

This commit is contained in:
Benjamin Canac
2023-05-16 17:33:30 +02:00
parent c0a4b28f54
commit 7588eca148
3 changed files with 14 additions and 7 deletions

View File

@@ -29,12 +29,10 @@
</template>
<script setup lang="ts">
const colorScheme = usePreferredColorScheme()
const colorMode = useColorMode()
// Computed
const href = computed(() => colorScheme.value === 'dark' ? '/icon-dark.svg' : '/icon-light.svg')
const color = computed(() => colorMode.value === 'dark' ? '#18181b' : 'white')
// Head
@@ -47,7 +45,7 @@ useHead({
],
link: [
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' },
{ rel: 'icon', type: 'image/svg+xml', href }
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }
],
htmlAttrs: {
lang: 'en'